feat(slint): post-lyrics UI polish sweep + correctness fixes
- TrackRow: Korean/CJK titles render via layout-assigned width+height (SongCard parity, never femtovg-measured); explicit "E" badge hugs the title text; duration + position number dropped to 13px so they read smaller than the 14px title. - AlbumView: label/awards rail 214->160px with smaller card/icon/padding and centered headings in the compact rail; removed the dark right gutter (full-width Flickable, content clears the scrollbar via the 32px page padding); column headers homologated to Playlist casing (Title/Duration/ Quality), same in LocalAlbumView. - ArtistView: network sidebar auto-collapses on ShellState.content- constrained (the AlbumView signal) and no longer re-opens on artist-> artist navigation (reset_network_sidebar respects the constraint). - Hero titles homologated to Typography.section (18px) across MyQBZ detail, Musician, Label releases, Artists-by-location, Offline Manager. - Lyrics: Qobuz || LRCLIB parallel fetch, next-track prefetch, source footer, asymmetric line fade. cc
This commit is contained in:
32 files changed
+1512
-406
No files matched your search
@@ -138,22 +138,46 @@ component LyricsLineRow inherits VerticalLayout {
|
||||
if (root.dimming-mode == 1) {
|
||||
return 0.6;
|
||||
}
|
||||
// strong (default) — ASYMMETRIC: incoming (future) lines fade much
|
||||
// harder than already-sung ones, nearly dissolving into the
|
||||
// background and brightening as they approach the active line, for a
|
||||
// stronger timing cue. Past lines keep a gentler fall-off.
|
||||
if (root.is-past) {
|
||||
if (root.distance == 1) {
|
||||
return 0.5;
|
||||
}
|
||||
if (root.distance == 2) {
|
||||
return 0.35;
|
||||
}
|
||||
if (root.distance == 3) {
|
||||
return 0.25;
|
||||
}
|
||||
return 0.18;
|
||||
}
|
||||
if (root.distance == 1) {
|
||||
return 0.5;
|
||||
return 0.4;
|
||||
}
|
||||
if (root.distance == 2) {
|
||||
return 0.35;
|
||||
return 0.2;
|
||||
}
|
||||
if (root.distance == 3) {
|
||||
return 0.25;
|
||||
return 0.08;
|
||||
}
|
||||
return 0.15;
|
||||
return 0.03;
|
||||
}
|
||||
|
||||
base := Text {
|
||||
text: root.display-text;
|
||||
wrap: word-wrap;
|
||||
opacity: root.line-opacity();
|
||||
// 1:1 with Tauri's `transition: opacity 220ms ease-out`
|
||||
// (LyricsLines.svelte:613-614): upcoming lines fade IN as they brighten
|
||||
// toward active, passed lines fade OUT to their dim tier — instead of
|
||||
// the opacity snapping between dimming steps.
|
||||
animate opacity {
|
||||
duration: 220ms;
|
||||
easing: ease-out;
|
||||
}
|
||||
// Active base = the DIM (unsung) layer under the karaoke overlay
|
||||
// (Tauri gradient parity: unsung stays dim, sung sweeps in accent).
|
||||
color: root.is-active
|
||||
@@ -324,17 +348,10 @@ export component LyricsLinesView inherits Rectangle {
|
||||
}
|
||||
|
||||
if LyricsState.synced: Rectangle { height: root.spacer-height; }
|
||||
|
||||
// Fallback-provider attribution (LRCLIB / lyrics.ovh). Tauri keeps
|
||||
// these in the About modal (AboutModal.svelte:141,144); Slint has
|
||||
// no About surface yet, so the line lives at the end of the scroll.
|
||||
// Qobuz is first-party: provider-label is empty, nothing renders.
|
||||
if root.show-attribution && LyricsState.provider-label != "": Text {
|
||||
text: @tr("Lyrics provided by {}", LyricsState.provider-label);
|
||||
color: Theme.text-muted;
|
||||
font-size: 10px;
|
||||
horizontal-alignment: center;
|
||||
}
|
||||
// Provider attribution moved to a fixed footer in LyricsSidebar
|
||||
// ("Lyrics source: <provider>"), shown for ALL providers incl.
|
||||
// Qobuz — so the scrolling attribution that used to live here is
|
||||
// gone (it only covered the LRCLIB/ovh fallbacks).
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user