audrey/src/play_queue.blp
2024-10-12 13:12:51 +00:00

35 lines
684 B
Text

using Gtk 4.0;
using Adw 1;
template $WaveletPlayQueue: Adw.NavigationPage {
title: _("Play queue");
Adw.ToolbarView {
[top]
Adw.HeaderBar {}
ScrolledWindow {
ListView list_view {
single-click-activate: true;
show-separators: true;
activate => $on_song_activate ();
model: Gtk.NoSelection {
model: bind template.songs;
};
factory: BuilderListItemFactory {
template ListItem {
child: Label {
styles [ "bold" ]
halign: start;
label: bind template.item as <$WaveletSong>.title;
};
}
};
}
}
}
}