audrey/src/play_queue.blp

32 lines
601 B
Text
Raw Normal View History

2024-10-10 10:12:43 +00:00
using Gtk 4.0;
using Adw 1;
template $WaveletPlayQueue: Adw.NavigationPage {
title: _("Play queue");
Adw.ToolbarView {
[top]
Adw.HeaderBar {}
ScrolledWindow {
ListView list_view {
2024-10-10 20:04:55 +00:00
single-click-activate: true;
2024-10-12 12:57:37 +00:00
show-separators: true;
2024-10-10 20:04:55 +00:00
2024-10-11 08:22:05 +00:00
activate => $on_song_activate ();
2024-10-10 10:12:43 +00:00
factory: BuilderListItemFactory {
2024-10-10 10:18:54 +00:00
template ListItem {
child: Label {
2024-10-12 12:57:37 +00:00
styles [ "bold" ]
2024-10-10 10:18:54 +00:00
halign: start;
2024-10-10 10:51:12 +00:00
label: bind template.item as <$WaveletSong>.title;
2024-10-10 10:18:54 +00:00
};
}
2024-10-10 10:12:43 +00:00
};
}
}
}
}