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:
vicrodh committed 2026-06-11 22:03:46 -06:00
1 parent 67a0e39841
commit 999ded11ff
32 files changed
+1512 -406

No files matched your search

+59 -1
View File
@@ -23,7 +23,7 @@ import { IconButton } from "../primitives/BarControls.slint";
import { LoadingSpinner } from "../primitives/LoadingSpinner.slint";
import { LyricsLinesView } from "LyricsLinesView.slint";
import { LyricsControlsPanel } from "LyricsControlsFlyout.slint";
import { ShellState, LyricsState } from "../state.slint";
import { ShellState, LyricsState, ArtworkActions } from "../state.slint";
component CloseButton inherits Rectangle {
callback clicked();
@@ -198,6 +198,7 @@ export component LyricsSidebar inherits Rectangle {
|| (LyricsState.status == 2 && LyricsState.lines.length == 0): VerticalLayout {
alignment: center;
padding: Spacing.md;
spacing: 12px;
Text {
text: @tr("No lyrics available");
color: Theme.text-muted;
@@ -205,6 +206,36 @@ export component LyricsSidebar inherits Rectangle {
horizontal-alignment: center;
wrap: word-wrap;
}
// Crowd-source nudge — LRCLIB is community-contributed, so a
// miss is an invitation to add them. Small, with a clickable
// link to the LRCLIB submission tool.
VerticalLayout {
spacing: 2px;
Text {
text: @tr("Missing lyrics? You can contribute them to LRCLIB:");
color: Theme.text-muted;
font-size: 10px;
horizontal-alignment: center;
wrap: word-wrap;
}
HorizontalLayout {
alignment: center;
link-ta := TouchArea {
width: link-text.preferred-width;
height: link-text.preferred-height;
mouse-cursor: pointer;
clicked => {
ArtworkActions.open-in-browser("https://lrclibup.boidu.dev/");
}
link-text := Text {
text: "lrclibup.boidu.dev";
color: link-ta.has-hover ? Theme.accent-hover : Theme.accent;
font-size: 10px;
horizontal-alignment: center;
}
}
}
}
}
// Offline with nothing cached — the typed NotAvailableOffline
@@ -265,5 +296,32 @@ export component LyricsSidebar inherits Rectangle {
: Theme.accent;
}
}
// Source attribution — a tiny line pinned at the very bottom, always
// shown once lyrics are present (incl. Qobuz). "Lyrics source:" in
// muted + the provider name in accent. Smallest legible size.
if LyricsState.status == 2 && LyricsState.lines.length > 0: HorizontalLayout {
alignment: start;
padding-left: Spacing.sm;
padding-right: Spacing.sm;
padding-top: 3px;
padding-bottom: 5px;
spacing: 3px;
Text {
text: @tr("Lyrics source") + ":";
color: Theme.text-muted;
font-size: 9px;
vertical-alignment: center;
}
Text {
text: LyricsState.provider == "lrclib" ? "LRCLIB"
: LyricsState.provider == "ovh" ? "lyrics.ovh"
: "Qobuz";
color: Theme.accent;
font-size: 9px;
font-weight: Typography.semibold;
vertical-alignment: center;
}
}
}
}