feat(award): swap trophy icon for white laurel wreath on gold gradient
Uses /static/laurels.svg as the default award artwork everywhere a placeholder was rendering the lucide Award (trophy) icon: - AwardView hero circle (140px, 68%) - AwardView 'Other awards' mini-card (120px, 56%) - AlbumDetailView sidebar award avatar (44px, 58%) Laurel is rendered as an <img> filtered white (brightness(0) invert(1)) over the existing gold gradient. Awards that ship with their own image/magazine cover keep theirs — the swap only affects the default fallback. cc
This commit is contained in:
2 files changed
+24
-5
No files matched your search
@@ -11,7 +11,7 @@
|
|||||||
setCustomAlbumCover,
|
setCustomAlbumCover,
|
||||||
removeCustomAlbumCover as removeCustomCoverFromStore
|
removeCustomAlbumCover as removeCustomCoverFromStore
|
||||||
} from '$lib/stores/customAlbumCoverStore';
|
} from '$lib/stores/customAlbumCoverStore';
|
||||||
import { ArrowLeft, Play, Shuffle, Heart, Radio, CloudDownload, ChevronLeft, ChevronRight, LoaderCircle, SquareCheckBig, BookOpen, Award, Disc3 } from 'lucide-svelte';
|
import { ArrowLeft, Play, Shuffle, Heart, Radio, CloudDownload, ChevronLeft, ChevronRight, LoaderCircle, SquareCheckBig, BookOpen, Disc3 } from 'lucide-svelte';
|
||||||
import { cachedSrc } from '$lib/actions/cachedImage';
|
import { cachedSrc } from '$lib/actions/cachedImage';
|
||||||
import AlbumCard from '../AlbumCard.svelte';
|
import AlbumCard from '../AlbumCard.svelte';
|
||||||
import TrackRow from '../TrackRow.svelte';
|
import TrackRow from '../TrackRow.svelte';
|
||||||
@@ -768,7 +768,7 @@
|
|||||||
disabled={!onAwardClick}
|
disabled={!onAwardClick}
|
||||||
>
|
>
|
||||||
<div class="sidebar-entity-avatar award-avatar">
|
<div class="sidebar-entity-avatar award-avatar">
|
||||||
<Award size={22} />
|
<img src="/laurels.svg" alt="" class="laurel-icon-xs" />
|
||||||
</div>
|
</div>
|
||||||
<div class="sidebar-entity-name">{award.name}</div>
|
<div class="sidebar-entity-name">{award.name}</div>
|
||||||
</button>
|
</button>
|
||||||
@@ -1419,6 +1419,12 @@
|
|||||||
.sidebar-entity-avatar.award-avatar {
|
.sidebar-entity-avatar.award-avatar {
|
||||||
background: linear-gradient(135deg, #b45309 0%, #eab308 100%);
|
background: linear-gradient(135deg, #b45309 0%, #eab308 100%);
|
||||||
}
|
}
|
||||||
|
.laurel-icon-xs {
|
||||||
|
width: 58%;
|
||||||
|
height: 58%;
|
||||||
|
filter: brightness(0) invert(1);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.sidebar-entity-name {
|
.sidebar-entity-name {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
import { onDestroy } from 'svelte';
|
import { onDestroy } from 'svelte';
|
||||||
import { invoke } from '@tauri-apps/api/core';
|
import { invoke } from '@tauri-apps/api/core';
|
||||||
import { t } from '$lib/i18n';
|
import { t } from '$lib/i18n';
|
||||||
import { ArrowLeft, Award as AwardIcon, Heart, LoaderCircle, ArrowRight } from 'lucide-svelte';
|
import { ArrowLeft, Heart, LoaderCircle, ArrowRight } from 'lucide-svelte';
|
||||||
import AlbumCard from '../AlbumCard.svelte';
|
import AlbumCard from '../AlbumCard.svelte';
|
||||||
import HorizontalScrollRow from '../HorizontalScrollRow.svelte';
|
import HorizontalScrollRow from '../HorizontalScrollRow.svelte';
|
||||||
import type { AwardPageData, QobuzAlbum } from '$lib/types';
|
import type { AwardPageData, QobuzAlbum } from '$lib/types';
|
||||||
@@ -239,7 +239,7 @@
|
|||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="award-image-placeholder">
|
<div class="award-image-placeholder">
|
||||||
<AwardIcon size={56} />
|
<img src="/laurels.svg" alt="" class="laurel-icon" />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -358,7 +358,7 @@
|
|||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="award-mini-placeholder">
|
<div class="award-mini-placeholder">
|
||||||
<AwardIcon size={32} />
|
<img src="/laurels.svg" alt="" class="laurel-icon-sm" />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -415,6 +415,13 @@
|
|||||||
display: flex; align-items: center; justify-content: center;
|
display: flex; align-items: center; justify-content: center;
|
||||||
background: linear-gradient(135deg, #b45309 0%, #eab308 100%); color: white;
|
background: linear-gradient(135deg, #b45309 0%, #eab308 100%); color: white;
|
||||||
}
|
}
|
||||||
|
/* Laurel wreath — black-fill SVG filtered to white so it reads on the
|
||||||
|
gold placeholder gradient. */
|
||||||
|
.laurel-icon {
|
||||||
|
width: 68%; height: 68%;
|
||||||
|
filter: brightness(0) invert(1);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.award-header-info {
|
.award-header-info {
|
||||||
flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
|
flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
|
||||||
}
|
}
|
||||||
@@ -556,6 +563,12 @@
|
|||||||
background: linear-gradient(135deg, #b45309 0%, #eab308 100%);
|
background: linear-gradient(135deg, #b45309 0%, #eab308 100%);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
.laurel-icon-sm {
|
||||||
|
width: 56%;
|
||||||
|
height: 56%;
|
||||||
|
filter: brightness(0) invert(1);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
.award-mini-name {
|
.award-mini-name {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
Reference in new issue
Block a user