2023-09-24 11:57:16 +02:00
|
|
|
using Gtk 4.0;
|
|
|
|
|
using Adw 1;
|
|
|
|
|
|
|
|
|
|
template $MusicusPlaylistPage : Adw.Bin {
|
|
|
|
|
Adw.ToolbarView {
|
|
|
|
|
[top]
|
|
|
|
|
Adw.HeaderBar {
|
|
|
|
|
title-widget: Adw.WindowTitle {
|
|
|
|
|
title: _("Playlist");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
[start]
|
|
|
|
|
Gtk.Button close_button {
|
|
|
|
|
icon-name: "go-down-symbolic";
|
|
|
|
|
clicked => $close() swapped;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Gtk.ScrolledWindow {
|
|
|
|
|
hscrollbar-policy: never;
|
|
|
|
|
|
2023-10-26 11:48:42 +02:00
|
|
|
Adw.ClampScrollable {
|
2023-09-24 11:57:16 +02:00
|
|
|
maximum-size: 1000;
|
|
|
|
|
tightening-threshold: 600;
|
2023-10-25 17:45:32 +02:00
|
|
|
|
|
|
|
|
Gtk.ListView playlist {
|
|
|
|
|
styles ["playlist", "background"]
|
|
|
|
|
margin-top: 12;
|
|
|
|
|
margin-bottom: 12;
|
|
|
|
|
margin-start: 12;
|
|
|
|
|
margin-end: 12;
|
|
|
|
|
single-click-activate: true;
|
2023-10-26 11:48:42 +02:00
|
|
|
activate => $select_item() swapped;
|
2023-10-25 17:45:32 +02:00
|
|
|
}
|
2023-09-24 11:57:16 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|