center status page
This commit is contained in:
parent
5f46cf2b77
commit
2916fa8f71
1 changed files with 37 additions and 37 deletions
|
@ -2,6 +2,21 @@ using Gtk 4.0;
|
|||
using Adw 1;
|
||||
|
||||
template $AudreyUiPlayQueue: Adw.Bin {
|
||||
child: Stack {
|
||||
visible-child-name: bind $visible_child_name(template.model as <$GListStore>.n-items) as <string>;
|
||||
|
||||
StackPage {
|
||||
name: "empty";
|
||||
|
||||
child: Adw.StatusPage {
|
||||
icon-name: "list-remove-all";
|
||||
title: "No songs queued";
|
||||
};
|
||||
}
|
||||
|
||||
StackPage {
|
||||
name: "not-empty";
|
||||
|
||||
child: Box {
|
||||
name: "play-queue-page";
|
||||
homogeneous: true;
|
||||
|
@ -34,21 +49,6 @@ template $AudreyUiPlayQueue: Adw.Bin {
|
|||
margin-start: 24;
|
||||
margin-end: 24;
|
||||
|
||||
child: Stack {
|
||||
visible-child-name: bind $visible_child_name(template.model as <$GListStore>.n-items) as <string>;
|
||||
|
||||
StackPage {
|
||||
name: "empty";
|
||||
|
||||
child: Adw.StatusPage {
|
||||
icon-name: "list-remove-all";
|
||||
title: "No songs queued";
|
||||
};
|
||||
}
|
||||
|
||||
StackPage {
|
||||
name: "not-empty";
|
||||
|
||||
child: ScrolledWindow {
|
||||
hexpand: true;
|
||||
hscrollbar-policy: never;
|
||||
|
|
Loading…
Reference in a new issue