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

@@ -21,6 +21,7 @@ import { PlaylistCard } from "../discover/PlaylistCard.slint";
import { TrackRow } from "../primitives/TrackRow.slint";
import { SearchTrackHero } from "../primitives/SearchTrackHero.slint";
import { NavButtons } from "../shell/NavButtons.slint";
import { ListScrollbar } from "../primitives/ListScrollbar.slint";
import { QbzIcon } from "../primitives/QbzIcon.slint";
import { LoadingSpinner } from "../primitives/LoadingSpinner.slint";
@@ -430,7 +431,7 @@ export component SearchResultsView inherits Rectangle {
}
// --- Scrollable results body ------------------------------------
Flickable {
flick := Flickable {
interactive: !DragState.active;
vertical-stretch: 1;
viewport-width: self.width;
@@ -622,4 +623,18 @@ export component SearchResultsView inherits Rectangle {
}
}
}
// Shared scrollbar in the right gutter (homologated cross-view). Sits
// below the fixed header (56px nav row + 40px tab strip when shown).
property <length> search-header-h:
!(SearchState.loading && !root.has-results) ? 96px : 56px;
ListScrollbar {
x: parent.width - self.width - 4px;
y: root.search-header-h;
width: 14px;
height: parent.height - root.search-header-h;
viewport-height: flick.viewport-height;
visible-height: flick.height;
viewport-y <=> flick.viewport-y;
}
}