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;
|
using Adw 1;
|
||||||
|
|
||||||
template $AudreyUiPlayQueue: Adw.Bin {
|
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 {
|
child: Box {
|
||||||
name: "play-queue-page";
|
name: "play-queue-page";
|
||||||
homogeneous: true;
|
homogeneous: true;
|
||||||
|
@ -34,21 +49,6 @@ template $AudreyUiPlayQueue: Adw.Bin {
|
||||||
margin-start: 24;
|
margin-start: 24;
|
||||||
margin-end: 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 {
|
child: ScrolledWindow {
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
hscrollbar-policy: never;
|
hscrollbar-policy: never;
|
||||||
|
|
Loading…
Reference in a new issue