audrey/src/ui/play_queue.blp

31 lines
607 B
Text
Raw Normal View History

2024-10-10 10:12:43 +00:00
using Gtk 4.0;
2024-10-20 13:30:22 +00:00
template $UiPlayQueue: Box {
2024-10-20 14:15:22 +00:00
name: "play-queue";
2024-10-20 13:30:22 +00:00
ScrolledWindow {
hexpand: true;
2024-10-20 14:15:22 +00:00
vscrollbar-policy: always;
hscrollbar-policy: never;
2024-10-10 10:12:43 +00:00
2024-10-20 13:30:22 +00:00
ListView view {
show-separators: true;
single-click-activate: true;
2024-10-19 11:29:39 +00:00
2024-10-20 14:15:22 +00:00
styles [ "rich-list" ]
2024-10-20 13:30:22 +00:00
activate => $on_row_activated ();
2024-10-19 11:29:39 +00:00
2024-10-20 13:30:22 +00:00
model: NoSelection {
model: bind template.playbin as <$Playbin>.play_queue;
};
2024-10-20 13:30:22 +00:00
factory: SignalListItemFactory {
setup => $on_song_list_setup ();
bind => $on_song_list_bind ();
unbind => $on_song_list_unbind ();
};
2024-10-10 10:12:43 +00:00
}
}
}