feat(dac-wizard): improve button size and add custom tooltip

- Match button height to dropdown (40px)
- Increase gandalf icon size (24px) for better visibility
- Add custom hover tooltip with larger gandalf icon
- Tooltip shows title and description explaining the wizard
- Add tooltip translations for EN/ES/FR/DE
This commit is contained in:
vicrodh committed 2026-02-03 03:04:11 -06:00
1 parent 8ef38c67e0
commit d99611ef46
5 files changed
+83 -5

No files matched your search

+67 -5
View File
@@ -2017,13 +2017,21 @@
compact
/>
{#if selectedBackend === 'PipeWire'}
<div class="dac-setup-wrapper">
<button
class="dac-setup-btn"
onclick={() => showDACWizardModal = true}
title={$t('dacWizard.title')}
>
<img src="/gandalf.svg" alt="DAC Setup" class="gandalf-icon" />
</button>
<div class="dac-tooltip">
<img src="/gandalf.svg" alt="" class="tooltip-gandalf" />
<div class="tooltip-content">
<span class="tooltip-title">{$t('dacWizard.tooltip.title')}</span>
<span class="tooltip-desc">{$t('dacWizard.tooltip.desc')}</span>
</div>
</div>
</div>
{/if}
</div>
</div>
@@ -2983,12 +2991,16 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz</pre>
gap: 8px;
}
.dac-setup-wrapper {
position: relative;
}
.dac-setup-btn {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
width: 40px;
height: 40px;
background: var(--accent-primary);
border: none;
border-radius: 6px;
@@ -3004,11 +3016,61 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz</pre>
}
.dac-setup-btn .gandalf-icon {
width: 18px;
height: 18px;
width: 24px;
height: 24px;
filter: invert(1);
}
.dac-tooltip {
position: absolute;
top: calc(100% + 8px);
right: 0;
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: 10px;
padding: 12px 14px;
display: flex;
align-items: center;
gap: 12px;
opacity: 0;
visibility: hidden;
transform: translateY(-4px);
transition: all 150ms ease;
z-index: 100;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
white-space: nowrap;
pointer-events: none;
}
.dac-setup-wrapper:hover .dac-tooltip {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.tooltip-gandalf {
width: 36px;
height: 36px;
opacity: 0.9;
}
.tooltip-content {
display: flex;
flex-direction: column;
gap: 2px;
}
.tooltip-title {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
}
.tooltip-desc {
font-size: 12px;
color: var(--text-secondary);
}
.loading-overlay {
position: fixed;
top: 0;
+4
View File
@@ -963,6 +963,10 @@
"dacWizard": {
"title": "DAC-Einrichtungsassistent",
"triggerTooltip": "DAC-Einrichtungshilfe",
"tooltip": {
"title": "Bit-Perfect-Assistent",
"desc": "Konfigurieren Sie Ihren DAC für verlustfreie Audiowiedergabe"
},
"welcome": {
"title": "Geführte DAC-Einrichtung",
"subtitle": "Dieser Assistent hilft Ihnen, Ihren DAC für bit-perfekte Wiedergabe unter Linux zu konfigurieren.",
+4
View File
@@ -1022,6 +1022,10 @@
},
"dacWizard": {
"triggerTooltip": "DAC Setup Guide",
"tooltip": {
"title": "Bit-Perfect Setup Wizard",
"desc": "Configure your DAC for lossless audio playback"
},
"welcome": {
"title": "Guided DAC Setup",
"subtitle": "This wizard helps you configure your DAC for bit-perfect playback on Linux.",
+4
View File
@@ -1022,6 +1022,10 @@
},
"dacWizard": {
"triggerTooltip": "Guía de Configuración de DAC",
"tooltip": {
"title": "Asistente Bit-Perfect",
"desc": "Configura tu DAC para reproducción sin pérdidas"
},
"welcome": {
"title": "Configuración Guiada de DAC",
"subtitle": "Este asistente te ayuda a configurar tu DAC para una reproducción bit-perfect en Linux.",
+4
View File
@@ -963,6 +963,10 @@
"dacWizard": {
"title": "Assistant Configuration DAC",
"triggerTooltip": "Guide de configuration DAC",
"tooltip": {
"title": "Assistant Bit-Perfect",
"desc": "Configurez votre DAC pour une lecture audio sans perte"
},
"welcome": {
"title": "Configuration Guidée du DAC",
"subtitle": "Cet assistant vous aide à configurer votre DAC pour une lecture bit-perfect sous Linux.",