feat(slint): immersive Static mode (mode 1) - faithful, responsive

New StaticPanel.slint: 1:1 port of StaticPanel.svelte. The calm, centered
now-playing card over the moving atmosphere. NON-reactive (no VisualizerState
energy, no glow halo, no breathing) - the only motion is the fixed-period
4-bar equalizer (animation-tick, shown only while playing), faithful to source.

- Responsive art reused from Album Reactive (height-driven + width*0.55 cap +
  clamp 180..460), reserve 364px = pad-top 52 + spacing 20 + info ~160 +
  player clearance 132 (no *1.25 since Static doesn't breathe). Metadata never
  clips under the player.
- Metadata: now-playing indicator / title 28/700 / artist 18 / italic album /
  centered QualityBadgeFull - matching the sibling and the Svelte source.
- ImmersiveView mounts it on ImmersiveState.mode == 1 (replaces the placeholder).
  Modes 0/2/3 untouched.

Accepted parity drops (match the shipped sibling + state model): explicit
badge omitted (no NowPlayingState.explicit field), no hover lift, label not
uppercased.

cc
This commit is contained in:
vicrodh committed 2026-06-13 08:40:19 -06:00
1 parent 786301a2e4
commit 2f89bbb207
2 files changed
+227 -1

No files matched your search

@@ -7,6 +7,7 @@ import { QbzIcon } from "../primitives/QbzIcon.slint";
import { NowPlayingState, VisualizerState, ImmersiveState, SettingsState } from "../state.slint";
import { ImmersiveAtmosphere } from "ImmersiveAtmosphere.slint";
import { AlbumReactivePanel } from "AlbumReactivePanel.slint";
import { StaticPanel } from "StaticPanel.slint";
component GhostButton inherits Rectangle {
in property <image> icon;
@@ -558,7 +559,14 @@ export component ImmersiveView inherits Rectangle {
viewport-width: root.width;
viewport-height: root.height;
}
// TODO(S3): Static mode foreground (mode == 1) — atmosphere-only for now.
// (2b) Static mode foreground (mode == 1) — calm centered now-playing
// card over the atmosphere. Same conditional-mount pattern (ADR-010).
if ImmersiveState.mode == 1: StaticPanel {
x: 0px;
y: 0px;
viewport-width: root.width;
viewport-height: root.height;
}
// TODO(S4): Coverflow mode foreground (mode == 2) — atmosphere-only for now.
// TODO(S5): Spectrum mode foreground (mode == 3) — atmosphere-only for now.