feat(slint): add Play next to track and album context menus
Add a "Play next" ContextMenuItem above "Add to queue" in every menu that offers queueing: the album page track menu, the artist page track menu, and the discover album card menu. Play next uses the list-plus icon and Add to queue switches to list-end, matching Tauri's ListPlus / ListEnd icon mapping. The queue sidebar track menu is left untouched. cc
This commit is contained in:
3 files changed
+21
No files matched your search
@@ -237,6 +237,13 @@ component TrackRow inherits Rectangle {
|
|||||||
}
|
}
|
||||||
ContextMenuItem {
|
ContextMenuItem {
|
||||||
icon: @image-url("../assets/icons/list-plus.svg");
|
icon: @image-url("../assets/icons/list-plus.svg");
|
||||||
|
label: @tr("Play next");
|
||||||
|
clicked => {
|
||||||
|
root.media-action("track", root.track.id, "play-next");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ContextMenuItem {
|
||||||
|
icon: @image-url("../assets/icons/list-end.svg");
|
||||||
label: @tr("Add to queue");
|
label: @tr("Add to queue");
|
||||||
clicked => {
|
clicked => {
|
||||||
root.media-action("track", root.track.id, "queue");
|
root.media-action("track", root.track.id, "queue");
|
||||||
|
|||||||
@@ -149,6 +149,13 @@ component TrackRow inherits Rectangle {
|
|||||||
}
|
}
|
||||||
ContextMenuItem {
|
ContextMenuItem {
|
||||||
icon: @image-url("../assets/icons/list-plus.svg");
|
icon: @image-url("../assets/icons/list-plus.svg");
|
||||||
|
label: @tr("Play next");
|
||||||
|
clicked => {
|
||||||
|
root.media-action("track", root.track.id, "play-next");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ContextMenuItem {
|
||||||
|
icon: @image-url("../assets/icons/list-end.svg");
|
||||||
label: @tr("Add to queue");
|
label: @tr("Add to queue");
|
||||||
clicked => {
|
clicked => {
|
||||||
root.media-action("track", root.track.id, "queue");
|
root.media-action("track", root.track.id, "queue");
|
||||||
|
|||||||
@@ -242,6 +242,13 @@ export component AlbumCard inherits Rectangle {
|
|||||||
}
|
}
|
||||||
ContextMenuItem {
|
ContextMenuItem {
|
||||||
icon: @image-url("../assets/icons/list-plus.svg");
|
icon: @image-url("../assets/icons/list-plus.svg");
|
||||||
|
label: @tr("Play next");
|
||||||
|
clicked => {
|
||||||
|
root.media-action("album", root.album.id, "play-next");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ContextMenuItem {
|
||||||
|
icon: @image-url("../assets/icons/list-end.svg");
|
||||||
label: @tr("Add to queue");
|
label: @tr("Add to queue");
|
||||||
clicked => {
|
clicked => {
|
||||||
root.media-action("album", root.album.id, "queue");
|
root.media-action("album", root.album.id, "queue");
|
||||||
|
|||||||
Reference in new issue
Block a user