Files
qbz/crates/qbz-slint/ui
vicrodh 5146acf286 feat(slint): immersive Spectrum bar colors derived from album art (negative fallback)
The bars used a fixed cyan->purple default. Now they take contrast colors from
the album artwork, with a negative-fallback for dark covers (a near-black
Metallica album would vanish against the black background -> invert so the bars
pop).

- immersive.rs: spectrum_colors() extracts the most saturated sample as primary
  + a hue-distinct secondary (channel-rotated if none distinct); if the cover is
  too dark/desaturated it uses the NEGATIVE of the average. ensure_visible_on_black()
  inverts a too-dark color and lifts a dim one so both stops read on black.
- ImmersiveState gains spectrum-primary / spectrum-secondary (defaults cyan->purple
  until art resolves); set in playback.rs from the same decoded artwork as
  glow-color / bg-image.
- SpectrumPanel binds the bar gradient to those (base = primary, tip = secondary).

cc
2026-06-13 11:08:29 -06:00
..