feat(slint): favorites Artists header Shuffle (random artist)

Add a Shuffle CircleAction to the Artists row-2 action cluster that opens a
random artist from the visible set (random ARTIST, not a random album —
matches Tauri). Adds favorites::random_visible_artist + the artists-shuffle
handler routing through invoke_open_artist.

cc
This commit is contained in:
vicrodh committed 2026-05-27 14:58:55 -06:00
1 parent b87489206a
commit bc95b30db3
3 files changed
+43

No files matched your search

@@ -635,6 +635,19 @@ export component FavoritesView inherits Rectangle {
}
}
}
if FavoritesState.active-tab == "artists"
&& FavoritesState.artists-visible.length > 0: HorizontalLayout {
spacing: 8px;
VerticalLayout {
alignment: center;
CircleAction {
icon: @image-url("../assets/icons/shuffle.svg");
clicked => {
FavoritesActions.artists-shuffle();
}
}
}
}
Rectangle { horizontal-stretch: 1; }