feat(slint): DAC wizard shell — 6-step modal + state + trigger (Slice 5)

DacWizardState/DacWizardActions/DacCandidateRow in state.slint (re-exported in
app.slint). DacWizardModal: scrim + 620px card + dot/label stepper rail +
Flickable body with if-step blocks + footer Back/Close/primary. Navigation is
inline state mutation (no Rust yet); the Actions callbacks (copy-command/
run-detect/query-caps/start-test) are declared for Slices 6-9. welcome step is
real (disclaimer + accept checkbox gating Start); steps 1-5 are titled
placeholders. Mounted in AppShell; "Open Wizard" 160x34 trigger added to Audio
settings, gated on PipeWire.

cc
This commit is contained in:
vicrodh committed 2026-06-15 20:09:35 -06:00
1 parent 5e57db7a0c
commit 9bb392c262
5 files changed
+366 -2

No files matched your search

@@ -6,7 +6,7 @@
import { Theme } from "../foundation/semantic-colors.slint";
import { Typography } from "../foundation/typography.slint";
import { Radius } from "../foundation/radius.slint";
import { SettingsState } from "../state.slint";
import { SettingsState, DacWizardState } from "../state.slint";
import { QbzToggle } from "../primitives/QbzToggle.slint";
import { QbzSelect } from "../primitives/QbzSelect.slint";
import { QbzIcon } from "../primitives/QbzIcon.slint";
@@ -269,6 +269,37 @@ export component AudioSettings inherits VerticalLayout {
}
}
// HiFi Wizard — guided DAC setup (PipeWire only, mirrors the Tauri gate).
if SettingsState.backend-is-pipewire: GroupHeader { text: @tr("DAC SETUP"); }
if SettingsState.backend-is-pipewire: SettingRow {
label: @tr("HiFi Wizard");
description: @tr("Auto-detect your DACs and set up bit-perfect playback, step by step.");
wizard-btn := Rectangle {
width: 160px;
height: 34px;
border-radius: Radius.sm;
border-width: 1px;
border-color: Theme.border-subtle;
background: wizard-ta.has-hover ? Theme.surface-hover : Theme.surface-elevated;
Text {
text: @tr("Open Wizard");
color: Theme.text-primary;
font-size: Typography.body;
font-weight: Typography.medium;
horizontal-alignment: center;
vertical-alignment: center;
}
wizard-ta := TouchArea {
mouse-cursor: pointer;
clicked => {
DacWizardState.open = true;
DacWizardState.step = 0;
DacWizardState.welcome-confirmed = false;
}
}
}
}
Rectangle { height: 20px; }
// Reset — restores Audio + Playback defaults.