fix(slint): search results 1:1 with Tauri
- Most popular: a crowned hero inline with the artists carousel; its cover now resolves (a dedicated artwork target was missing). - Artists: a real carousel on the All tab, ArtistCard restyled to the Tauri For-You tile with a Follow chip (favorites the artist) shown when the user does not follow it. - Playlists: a PlaylistCarousel of PlaylistCard, with a count-based PlaylistCollage (1/2/3/4-up) instead of a flat row list. - Carousels gained a View all link; result counts removed from titles. - searchType filter is a styled radio row (ring + accent dot) at the top right with a clear button, not a dropdown. - Title fixed to Search Results. - QbzCore::favorite_artist_ids backs the follow state. cc
This commit is contained in:
15 files changed
+1213
-339
No files matched your search
@@ -31,6 +31,8 @@ export struct SlimItem {
|
||||
rank: string, // "" = no rank
|
||||
artwork-url: string,
|
||||
artwork: image,
|
||||
// Artist follow state — drives the ArtistCard Follow button.
|
||||
following: bool,
|
||||
}
|
||||
|
||||
// Discover / Home screen state.
|
||||
@@ -343,13 +345,21 @@ export struct SearchTrackItem {
|
||||
artwork: image,
|
||||
}
|
||||
|
||||
// A playlist result row in search.
|
||||
// A playlist result in search. Qobuz returns up to four cover URLs per
|
||||
// playlist; the card renders them as a count-based collage.
|
||||
export struct SearchPlaylistItem {
|
||||
id: string,
|
||||
title: string,
|
||||
subtitle: string, // owner name + track count
|
||||
artwork-url: string,
|
||||
artwork: image,
|
||||
cover-count: int, // number of cover images, 0-4
|
||||
url1: string,
|
||||
url2: string,
|
||||
url3: string,
|
||||
url4: string,
|
||||
cover1: image,
|
||||
cover2: image,
|
||||
cover3: image,
|
||||
cover4: image,
|
||||
}
|
||||
|
||||
// Search results screen state. The Rust search controller populates the
|
||||
|
||||
Reference in new issue
Block a user