From e624d770b9f9f8789e0ae84210263037626ae7ef Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 23 Jan 2026 10:20:39 -0600 Subject: [PATCH] feat(player): redesign queue button position and icon - Move queue button to far right of NowPlayingBar (after volume) - Add vertical separator between volume control and queue button - Replace ListMusic icon with custom queue-list SVG - Add active state: play symbol changes to accent color when panel open - Pass queueOpen prop to track panel visibility state --- src/lib/components/NowPlayingBar.svelte | 63 ++++++++++++++++++++++--- src/routes/+page.svelte | 2 + static/queue-list.svg | 7 +++ 3 files changed, 66 insertions(+), 6 deletions(-) create mode 100644 static/queue-list.svg diff --git a/src/lib/components/NowPlayingBar.svelte b/src/lib/components/NowPlayingBar.svelte index ee879bd5c..a3a1a2197 100644 --- a/src/lib/components/NowPlayingBar.svelte +++ b/src/lib/components/NowPlayingBar.svelte @@ -9,7 +9,6 @@ Repeat1, Heart, Plus, - ListMusic, Volume2, VolumeX, Volume1, @@ -64,6 +63,7 @@ onArtistClick?: () => void; onAlbumClick?: () => void; onContextClick?: () => void; + queueOpen?: boolean; } let { @@ -100,7 +100,8 @@ isCastConnected = false, onArtistClick, onAlbumClick, - onContextClick + onContextClick, + queueOpen = false }: Props = $props(); let progressRef: HTMLDivElement; @@ -364,10 +365,6 @@ - - @@ -409,6 +406,22 @@
+ + + + + + @@ -573,6 +586,44 @@ 50% { opacity: 0.6; } } + /* Section Separator */ + .section-separator { + width: 1px; + height: 20px; + background: var(--border-subtle); + margin: 0 8px; + flex-shrink: 0; + } + + /* Queue Button & Icon */ + .queue-btn { + width: 32px; + height: 32px; + } + + .queue-icon { + display: block; + } + + .queue-icon .queue-lines { + fill: currentColor; + } + + .queue-icon .queue-play { + fill: currentColor; + opacity: 0.4; + transition: fill 150ms ease, opacity 150ms ease; + } + + .queue-icon.open .queue-play { + fill: var(--accent-primary, #6366f1); + opacity: 1; + } + + .queue-btn.active { + color: var(--text-primary); + } + /* Offline Indicator */ .offline-indicator { display: flex; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 5b7aae0de..47a6f3e6a 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2429,6 +2429,7 @@ } }} onContextClick={handleContextNavigation} + queueOpen={isQueueOpen} /> {:else}