feat(slint): TrackRow favorites + artist/album links, PlaylistView, LabelView, scrollbar

CHECKPOINT — this batch is NOT yet acceptable; substantial feedback is pending. Committed so the work is preserved for rework next session, after a max-effort Tauri code review. Areas: TrackRow favorite toggle/state + clickable artist/album (TrackItem gains is-favorite/artist-id/album-id + fav_cache, populated across all builders); PlaylistView header buttons + cover-art hover overlay; LabelView full AlbumCard + grid/list toggle; vertical scrollbar moved to the right gutter across ~12 views.

cc
This commit is contained in:
vicrodh committed 2026-05-26 16:36:02 -06:00
1 parent a5383ba502
commit b2004e6867
24 files changed
+632 -103

No files matched your search

@@ -22,6 +22,7 @@ import { AlbumCard } from "../discover/AlbumCard.slint";
import { TrackRow } from "../primitives/TrackRow.slint";
import { QbzIcon } from "../primitives/QbzIcon.slint";
import { LoadingSpinner } from "../primitives/LoadingSpinner.slint";
import { ListScrollbar } from "../primitives/ListScrollbar.slint";
import { NavButtons } from "../shell/NavButtons.slint";
// One tab in the favorites tab bar.
@@ -248,7 +249,7 @@ export component FavoritesView inherits Rectangle {
background: Theme.surface-main;
Flickable {
flick := Flickable {
interactive: !DragState.active;
viewport-width: self.width;
viewport-height: page.preferred-height;
@@ -442,4 +443,14 @@ export component FavoritesView inherits Rectangle {
}
}
}
// Shared scrollbar in the right gutter (homologated cross-view).
ListScrollbar {
x: parent.width - self.width - 4px;
width: 14px;
height: 100%;
viewport-height: flick.viewport-height;
visible-height: flick.height;
viewport-y <=> flick.viewport-y;
}
}