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:
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; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user