Integrate glassmorphism theme across UI components

- QueuePanel: Glass slide-in panel with blur backdrop
- NowPlayingBar: Glass bottom bar with proper fixed positioning
- PlaylistModal: Glass modal with rounded corners and blur
- AddToPlaylistModal: Glass modal with same styling
- GlassSurface: Updated to Svelte 5 (children snippet, role attr)
  - Removed position:relative to allow fixed positioning override

Glass CSS variables used:
--glass-bg, --glass-blur, --glass-radius, --glass-border, --glass-shadow
This commit is contained in:
vicrodh committed 2026-01-10 11:13:41 -06:00
1 parent 541511bba2
commit afa1a71a4f
5 files changed
+55 -30

No files matched your search

+9 -6
View File
@@ -1,5 +1,6 @@
<script lang="ts">
import { X, GripVertical, Play } from 'lucide-svelte';
import GlassSurface from './glass/GlassSurface.svelte';
interface QueueTrack {
id: string;
@@ -37,7 +38,7 @@
<div class="backdrop" onclick={onClose} role="presentation"></div>
<!-- Queue Panel -->
<div class="queue-panel">
<GlassSurface rootClassName="queue-panel" enableRipple={false} enableDistortion={false}>
<!-- Header -->
<div class="header">
<h2>Queue</h2>
@@ -123,7 +124,7 @@
<button class="save-btn" onclick={onSaveAsPlaylist}>Save as Playlist</button>
</div>
{/if}
</div>
</GlassSurface>
{/if}
<style>
@@ -134,19 +135,21 @@
z-index: 40;
}
.queue-panel {
:global(.queue-panel) {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: 360px;
background-color: var(--bg-secondary);
border-left: 1px solid var(--bg-tertiary);
z-index: 50;
display: flex;
flex-direction: column;
box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
animation: slideInRight 200ms ease-out;
--glass-bg: rgba(30, 30, 35, 0.85);
--glass-blur: 24px;
--glass-radius: 0;
--glass-border: rgba(255, 255, 255, 0.08);
--glass-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}
@keyframes slideInRight {