From d99611ef4658a7534633895ffcd47175f015267c Mon Sep 17 00:00:00 2001
From: vicrodh <103399283+vicrodh@users.noreply.github.com>
Date: Tue, 3 Feb 2026 03:04:11 -0600
Subject: [PATCH] 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
---
src/lib/components/views/SettingsView.svelte | 84 +++++++++++++++++---
src/lib/i18n/locales/de.json | 4 +
src/lib/i18n/locales/en.json | 4 +
src/lib/i18n/locales/es.json | 4 +
src/lib/i18n/locales/fr.json | 4 +
5 files changed, 89 insertions(+), 11 deletions(-)
diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte
index c2d1d1ea6..aecc76238 100644
--- a/src/lib/components/views/SettingsView.svelte
+++ b/src/lib/components/views/SettingsView.svelte
@@ -2017,13 +2017,21 @@
compact
/>
{#if selectedBackend === 'PipeWire'}
-
+
+
+
+
{/if}
@@ -2983,12 +2991,16 @@ flatpak override --user --filesystem=/home/USUARIO/Música com.blitzfc.qbz
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
}
.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;
diff --git a/src/lib/i18n/locales/de.json b/src/lib/i18n/locales/de.json
index f1ed06712..32dec1840 100644
--- a/src/lib/i18n/locales/de.json
+++ b/src/lib/i18n/locales/de.json
@@ -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.",
diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json
index 69316e1cf..b6c067e75 100644
--- a/src/lib/i18n/locales/en.json
+++ b/src/lib/i18n/locales/en.json
@@ -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.",
diff --git a/src/lib/i18n/locales/es.json b/src/lib/i18n/locales/es.json
index 867602c1a..cb3bef12c 100644
--- a/src/lib/i18n/locales/es.json
+++ b/src/lib/i18n/locales/es.json
@@ -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.",
diff --git a/src/lib/i18n/locales/fr.json b/src/lib/i18n/locales/fr.json
index 154a9b709..aa29a9d0d 100644
--- a/src/lib/i18n/locales/fr.json
+++ b/src/lib/i18n/locales/fr.json
@@ -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.",