diff --git a/src/lib/components/HomeSettingsModal.svelte b/src/lib/components/HomeSettingsModal.svelte index d566831e3..45e5ff604 100644 --- a/src/lib/components/HomeSettingsModal.svelte +++ b/src/lib/components/HomeSettingsModal.svelte @@ -127,7 +127,9 @@ {section.label} {#if section.source === 'qobuz'} - Qobuz + Qobuz + {:else if section.source === 'ml'} + ML {/if} @@ -350,14 +352,22 @@ .source-badge { font-size: 10px; font-weight: 500; - color: var(--accent-primary); - background: rgba(99, 102, 241, 0.15); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; } + .source-badge.qobuz { + color: var(--accent-primary); + background: rgba(99, 102, 241, 0.15); + } + + .source-badge.ml { + color: #10b981; + background: rgba(16, 185, 129, 0.15); + } + .reset-btn { display: flex; align-items: center; diff --git a/src/lib/stores/homeSettingsStore.ts b/src/lib/stores/homeSettingsStore.ts index 0ed0b31e4..26755e4e4 100644 --- a/src/lib/stores/homeSettingsStore.ts +++ b/src/lib/stores/homeSettingsStore.ts @@ -19,7 +19,7 @@ export interface HomeSection { id: HomeSectionId; label: string; visible: boolean; - source?: 'qobuz' | 'user'; // qobuz = editorial, user = personal data + source?: 'qobuz' | 'ml'; // qobuz = editorial, ml = ML-powered recommendations } export interface HomeSettings { @@ -37,10 +37,10 @@ const DEFAULT_SECTIONS: HomeSection[] = [ { id: 'newReleases', label: 'New Releases', visible: true, source: 'qobuz' }, { id: 'pressAwards', label: 'Press Awards', visible: true, source: 'qobuz' }, { id: 'mostStreamed', label: 'Popular Albums', visible: false, source: 'qobuz' }, - { id: 'recentAlbums', label: 'Recently Played', visible: true, source: 'user' }, - { id: 'continueTracks', label: 'Continue Listening', visible: true, source: 'user' }, - { id: 'topArtists', label: 'Your Top Artists', visible: true, source: 'user' }, - { id: 'favoriteAlbums', label: 'More From Favorites', visible: true, source: 'user' }, + { id: 'recentAlbums', label: 'Recently Played', visible: true, source: 'ml' }, + { id: 'continueTracks', label: 'Continue Listening', visible: true, source: 'ml' }, + { id: 'topArtists', label: 'Your Top Artists', visible: true, source: 'ml' }, + { id: 'favoriteAlbums', label: 'More From Favorites', visible: true, source: 'ml' }, ]; const DEFAULT_SETTINGS: HomeSettings = {