feat(slint): add Large now-playing-bar mode (NPB mode B)

Fourth NPB layout: a cover + spectrum dock pinned flush to the bottom-left
of the open sidebar (forming an L), with the bottom bar reusing the New
layout (window-centred transport, full-width inset seekbar, right cluster)
minus the cover. Gated on the open sidebar (npb-mode 3 && sidebar-state 0);
cycling the sidebar out of the open state reverts live to New while keeping
the persisted choice.

- SidebarNowPlayingDock: AppShell root overlay, cover flush to the window
  bottom-left, compact spectrum band (Bars 28-mirrored / Waveform / Energy)
  above it, single top-right eye toggle to show/hide it. FFT reuses
  VisualizerState; when hidden the sidebar list reclaims the space.
- Extract AudioStamp into a shared exported component (consumed by the Small
  and Large bars); in Large it sits at a constant gap left of the right
  cluster, out of the left song card.
- Persist the visualizer on/off and the spectrum mode in ui_prefs; restore
  at startup and prime the FFT tap after visualizer::install().
- Reduce the horizontal volume slider width 10% across all NPB modes.

cc
This commit is contained in:
vicrodh committed 2026-06-21 14:53:33 -06:00
1 parent b1ac402cf7
commit 9d6b3533bc
10 files changed
+683 -154

No files matched your search

@@ -389,7 +389,9 @@ component ImmersivePlayerBar inherits Rectangle {
mouse-cursor: pointer;
clicked => {
ImmersiveState.open = false;
VisualizerState.set-enabled(false);
// Keep the tap alive if the Large NPB dock still needs
// its spectrum; only idle it when nothing else does.
VisualizerState.set-enabled(ShellState.large-active && ShellState.large-visualizer-on);
}
}
QbzIcon {
@@ -1025,7 +1027,8 @@ component ImmersiveWindowControls inherits Rectangle {
icon: @image-url("../assets/icons/x.svg");
clicked => {
ImmersiveState.open = false;
VisualizerState.set-enabled(false);
// Keep the tap alive for the Large NPB dock if it is active.
VisualizerState.set-enabled(ShellState.large-active && ShellState.large-visualizer-on);
}
}
@@ -1126,7 +1129,8 @@ export component ImmersiveView inherits Rectangle {
key-pressed(event) => {
if (event.text == Key.Escape) {
ImmersiveState.open = false;
VisualizerState.set-enabled(false);
// Keep the tap alive for the Large NPB dock if it is active.
VisualizerState.set-enabled(ShellState.large-active && ShellState.large-visualizer-on);
return accept;
}
// 'g' (GPU) cycles the shader scene 0 -> 1 -> 2 -> 3 -> 0 (Off ->