feat(slint): replicate Settings > Appearance section (1:1 UI, mostly unwired)
Add an Appearance sub-section to the Slint settings, mirroring Tauri's: theme + auto-theme, font/UI-scale/language, startup page, sidebar playlist collage (wired to the sidebar flag), notifications/toasts/tray, title bar + window controls, immersive + miniplayer. Controls reuse QbzToggle/QbzSelect and the AudioSettings/PlaybackSettings layout. Most controls are visual stubs (AppearanceState + TODO callbacks) pending backend wiring. cc
This commit is contained in:
2 files changed
+786
No files matched your search
@@ -13,6 +13,7 @@ import { QbzIcon } from "../primitives/QbzIcon.slint";
|
||||
import { NavButtons } from "../shell/NavButtons.slint";
|
||||
import { AudioSettings } from "AudioSettings.slint";
|
||||
import { PlaybackSettings } from "PlaybackSettings.slint";
|
||||
import { AppearanceSettings } from "AppearanceSettings.slint";
|
||||
import { ScrollView } from "std-widgets.slint";
|
||||
|
||||
component SubNavItem inherits Rectangle {
|
||||
@@ -121,6 +122,14 @@ export component SettingsView inherits Rectangle {
|
||||
SettingsState.section = 1;
|
||||
}
|
||||
}
|
||||
SubNavItem {
|
||||
icon: @image-url("../assets/icons/layers.svg");
|
||||
label: @tr("Appearance");
|
||||
active: SettingsState.section == 2;
|
||||
clicked => {
|
||||
SettingsState.section = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,6 +172,10 @@ export component SettingsView inherits Rectangle {
|
||||
root.settings-slider(k, v);
|
||||
}
|
||||
}
|
||||
// Appearance — a structural replica; rows bind to
|
||||
// AppearanceState and emit its own callbacks, so no
|
||||
// SettingsView-level callback forwarding is needed here.
|
||||
if !SettingsState.loading && SettingsState.section == 2: AppearanceSettings { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user