Merge feature/ux-improvements-180226: UX improvements and playback context
Major UX improvements:
- Playback context tracking from albums/playlists/artists/favorites/home/search
- Stack icon showing context origin with clickable navigation
- Autoplay behavior setting with persistence
- Context menu actions (Play track only, Play from here)
- Track row pause on hover across all views
- Volume indicators while dragging (all 4 players)
- Favorites customization (custom icon, background, sticky nav, search)
- Theme expansion (Nord, Dracula, Tokyo Night, Catppuccin, Rosé Pine, Breeze, Adwaita)
- Layout fix: NowPlayingBar moved outside app-body flex row
Database migrations (safe for existing users 1.1.5+):
- playback_preferences table (autoplay + show_context_icon)
- favorites_preferences table (custom_icon_path, preset, icon_background, tab_order)
- Favorites icon now stored in cache dir with auto-migration
Audio backend: ✅ UNTOUCHED (bit-perfect playback preserved)
Known gaps (to fix in next branch):
- Track focus on context navigation not implemented
- Volume indicator in FocusMode/MiniPlayer not confirmed tested
# Conflicts:
# src/lib/components/AlbumCard.svelte
This commit is contained in:
commit
e2afc25175
36 files changed
+4116
-436
No files matched your search
@@ -20,6 +20,7 @@
|
||||
} from 'lucide-svelte';
|
||||
import QualityBadge from './QualityBadge.svelte';
|
||||
import AudioOutputBadges from './AudioOutputBadges.svelte';
|
||||
import StackIcon from './StackIcon.svelte';
|
||||
import { t } from '$lib/i18n';
|
||||
import {
|
||||
subscribe as subscribeOffline,
|
||||
@@ -62,6 +63,7 @@
|
||||
isCastConnected?: boolean;
|
||||
onArtistClick?: () => void;
|
||||
onAlbumClick?: () => void;
|
||||
onContextClick?: () => void;
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -97,7 +99,8 @@
|
||||
lyricsActive = false,
|
||||
isCastConnected = false,
|
||||
onArtistClick,
|
||||
onAlbumClick
|
||||
onAlbumClick,
|
||||
onContextClick
|
||||
}: Props = $props();
|
||||
|
||||
let progressRef: HTMLDivElement;
|
||||
@@ -296,6 +299,7 @@
|
||||
<div class="song-info">
|
||||
<span class="song-title" title={trackTitle}>{trackTitle}</span>
|
||||
<div class="song-meta">
|
||||
<StackIcon size={12} class="stack-icon" onClick={onContextClick} />
|
||||
{#if artist}
|
||||
<button class="meta-link" onclick={onArtistClick} title={$t('actions.goToArtist')}>
|
||||
{artist}
|
||||
@@ -374,6 +378,7 @@
|
||||
|
||||
<!-- Volume Control -->
|
||||
<div class="volume-control">
|
||||
<div class="volume-value" class:visible={isDraggingVolume}>{volume}</div>
|
||||
<button
|
||||
class="control-btn volume-btn"
|
||||
onclick={() => onVolumeChange?.(volume === 0 ? 70 : 0)}
|
||||
@@ -676,6 +681,20 @@
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.song-title-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.song-title-row :global(.stack-icon) {
|
||||
flex-shrink: 0;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.song-title {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
@@ -695,6 +714,11 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.song-meta :global(.stack-icon) {
|
||||
flex-shrink: 0;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.meta-link {
|
||||
background: none;
|
||||
border: none;
|
||||
@@ -743,6 +767,7 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.volume-slider {
|
||||
@@ -788,4 +813,25 @@
|
||||
.volume-slider:hover .volume-thumb {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.volume-value {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: calc(100% + 6px);
|
||||
padding: 4px 6px;
|
||||
border-radius: 6px;
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
transition: opacity 120ms ease, transform 120ms ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.volume-value.visible {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user