audrey/src/ui/play_queue.blp

37 lines
760 B
Text
Raw Normal View History

2024-10-10 10:12:43 +00:00
using Gtk 4.0;
using Adw 1;
2024-10-13 09:41:01 +00:00
template $UiPlayQueue: Adw.NavigationPage {
2024-10-10 10:12:43 +00:00
title: _("Play queue");
Adw.ToolbarView {
[top]
2024-10-12 16:35:42 +00:00
Adw.HeaderBar {
Button {
icon-name: "edit-clear-all";
clicked => $on_clear ();
2024-10-12 16:35:42 +00:00
sensitive: bind template.can_clear_all;
}
}
2024-10-10 10:12:43 +00:00
ScrolledWindow {
2024-10-19 11:07:22 +00:00
ListView view {
2024-10-19 12:53:49 +00:00
show-separators: true;
2024-10-19 11:29:39 +00:00
single-click-activate: true;
activate => $on_row_activated ();
model: NoSelection {
model: bind template.playbin as <$Playbin>.play_queue;
};
2024-10-19 11:07:22 +00:00
factory: SignalListItemFactory {
setup => $on_song_list_setup ();
bind => $on_song_list_bind ();
2024-10-19 12:39:44 +00:00
unbind => $on_song_list_unbind ();
2024-10-19 11:07:22 +00:00
};
2024-10-10 10:12:43 +00:00
}
}
}
}