Files
qbz/crates/qbz-slint
vicrodh 9546656734 fix(slint): immersive player volume control - lock gating + Tauri-faithful UX
The immersive compact player's volume bar never respected the volume lock and
diverged from the Tauri VolumeSlider UX. Units were already correct (0..1
end-to-end); the bug was missing lock gating + a bare progress strip.

- Add `vol-locked` to ImmersivePlayerBar, byte-identical to PlayerBar.slint:
  (backend-is-alsa && alsa-plugin-is-hw && !is-remote) || volume-locked.
  Import SettingsState.
- Gate the mute button and the volume bar's changed handler on vol-locked;
  dim the bar to 0.4 when locked (mirrors PlayerBar). The bottom seek bar is
  left ungated (correctly).
- Bring the volume control up to Tauri shared/VolumeSlider.svelte UX: a new
  VolumeBar with a hover-revealed thumb, drag/hover percent readout, and
  locked-state fill pinned to 100%. Kept the custom primitive (QbzSlider is
  integer 0..100 / QbzVerticalSlider is vertical; neither fits the float 0..1
  white-on-glass immersive look). Centered play disc and seek bar untouched.

cc
2026-06-13 06:38:07 -06:00
..