feat(slint): immersive Album Reactive mode + mode scaffold + provisional selector
Builds the foreground layer on Codex's accepted atmosphere+player base. - ImmersiveState.mode (int, default 0): 0 Album Reactive / 1 Static / 2 Coverflow / 3 Spectrum. Compact 0..3 enum for the scaffold (Tauri has no single integer mode; it uses viewMode + activeFocusTab strings). - ImmersiveView layer stack: atmosphere (bottom) -> mode foreground -> auto-hide player -> ModeBar selector. Modes 1/2/3 mount no foreground yet (atmosphere-only placeholder, TODO S3/S4/S5). - Provisional ModeBar selector (top-center, auto-hides with chrome-visible), to be replaced by the polished segmented bar in the header session. - New AlbumReactivePanel.slint: faithful port of AlbumReactivePanel.svelte (387 lines), NOT the rejected breathing-art proof. Exact maps: global-energy = avg(energy[0..5]); bass = avg(energy[0..2]); art-scale 1+global*0.25; glow-spread 15+bass*200; glow-opacity min(0.1+global*1.5,1); 4-bar now-playing equalizer driven by animation-tick() (not a Timer). Album-derived glow from the already-wired ImmersiveState.glow-color; energy already published by visualizer.rs. - main.rs immersive arm sets mode=0 on open (deterministic). Flagged minors (deferred, see overnight log): glow tint not reset on track-change until the new cover decodes; raw energy + 100ms animate vs the Svelte asymmetric EMA; glow drop-shadow-blur only (no spread term); explicit badge omitted (no NowPlayingState.explicit field); clamp art-scale energy to avoid a clip at the block boundary on loud transients. cc
This commit is contained in:
4 files changed
+377
-1
No files matched your search
@@ -2964,6 +2964,14 @@ export global ImmersiveState {
|
||||
in-out property <bool> open: false;
|
||||
in property <image> bg-image;
|
||||
in property <color> glow-color: #6464ff59;
|
||||
// Foreground mode for the conditional-mounted panel:
|
||||
// 0 = Album Reactive, 1 = Static, 2 = Coverflow, 3 = Spectrum.
|
||||
// SESSION default 0 (Album Reactive) so opening shows a real foreground;
|
||||
// modes 1-3 are atmosphere-only placeholders until their own sessions.
|
||||
// NOTE: this compact 0..3 enum is a Slint-scaffold contract; it deliberately
|
||||
// does NOT match Tauri's focus-tab string order (coverflow first). Product
|
||||
// default + persistence ("remember last view") is a later (header) session.
|
||||
in-out property <int> mode: 0;
|
||||
}
|
||||
|
||||
// Now-playing / transport state. The Rust playback poll loop pushes the
|
||||
|
||||
Reference in new issue
Block a user