From the controller-mode debug session. All peer-facing paths gate on is_peer_renderer_active, so renderer / local / disconnected playback is unaffected. - Now-playing bar + queue follow the peer authoritatively: reflect the peer's current track / position / volume, refresh on the peer's track changes, and fetch a fresh renderer state on becoming a controller (so the bar isn't stale until the next track change; this also fixed remote pause, which had been sending a stale current_queue_item). - Route play-next / add-to-queue (single track) to the peer via QueueInsertTracks / QueueAddTracks (insert-after the peer's current item); multi-track album/playlist enqueue stays local for now. Clear the superseded SetVolume pending to stop the volume-drag command spam. - Clean disconnect: disarm the liveness watchdog + clear the device list / cast state, so no spurious "renderer unreachable" toast and no lingering badge. - Volume lock only for local ALSA-Direct bit-perfect (backend Alsa + plugin Hw), lifted while controlling; reflect the peer's volume with a 50% safety clamp when unknown. - Connect button golden whenever a session is on; +2px now-playing bar height. cc
13 lines
543 B
Plaintext
13 lines
543 B
Plaintext
// Shell layout metrics.
|
|
|
|
export global Layout {
|
|
// Max sidebar width (also the default). The drag handle clamps to this.
|
|
out property <length> sidebar-width: 260px;
|
|
out property <length> header-height: 42px;
|
|
// 112 (was 110): +2px so the now-playing card / album art / audio stamp
|
|
// get a touch more height — the "playing on <device>" line was cramped.
|
|
// The New-layout art-size tracks this (`player-bar-height - 38`).
|
|
out property <length> player-bar-height: 112px;
|
|
out property <length> hairline: 1px;
|
|
}
|