center status page
This commit is contained in:
parent
5f46cf2b77
commit
2916fa8f71
1 changed files with 37 additions and 37 deletions
|
@ -2,52 +2,52 @@ using Gtk 4.0;
|
||||||
using Adw 1;
|
using Adw 1;
|
||||||
|
|
||||||
template $AudreyUiPlayQueue: Adw.Bin {
|
template $AudreyUiPlayQueue: Adw.Bin {
|
||||||
child: Box {
|
child: Stack {
|
||||||
name: "play-queue-page";
|
visible-child-name: bind $visible_child_name(template.model as <$GListStore>.n-items) as <string>;
|
||||||
homogeneous: true;
|
|
||||||
|
|
||||||
Adw.Clamp {
|
StackPage {
|
||||||
halign: center;
|
name: "empty";
|
||||||
margin-top: 24;
|
|
||||||
margin-bottom: 24;
|
|
||||||
margin-start: 24;
|
|
||||||
margin-end: 24;
|
|
||||||
|
|
||||||
Picture {
|
child: Adw.StatusPage {
|
||||||
valign: center;
|
icon-name: "list-remove-all";
|
||||||
|
title: "No songs queued";
|
||||||
styles [
|
};
|
||||||
"frame"
|
|
||||||
]
|
|
||||||
|
|
||||||
halign: center;
|
|
||||||
paintable: bind template.playing-cover-art;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Adw.Bin {
|
StackPage {
|
||||||
name: "play-queue";
|
name: "not-empty";
|
||||||
hexpand: true;
|
|
||||||
halign: fill;
|
|
||||||
margin-top: 48;
|
|
||||||
margin-bottom: 48;
|
|
||||||
margin-start: 24;
|
|
||||||
margin-end: 24;
|
|
||||||
|
|
||||||
child: Stack {
|
child: Box {
|
||||||
visible-child-name: bind $visible_child_name(template.model as <$GListStore>.n-items) as <string>;
|
name: "play-queue-page";
|
||||||
|
homogeneous: true;
|
||||||
|
|
||||||
StackPage {
|
Adw.Clamp {
|
||||||
name: "empty";
|
halign: center;
|
||||||
|
margin-top: 24;
|
||||||
|
margin-bottom: 24;
|
||||||
|
margin-start: 24;
|
||||||
|
margin-end: 24;
|
||||||
|
|
||||||
child: Adw.StatusPage {
|
Picture {
|
||||||
icon-name: "list-remove-all";
|
valign: center;
|
||||||
title: "No songs queued";
|
|
||||||
};
|
styles [
|
||||||
|
"frame"
|
||||||
|
]
|
||||||
|
|
||||||
|
halign: center;
|
||||||
|
paintable: bind template.playing-cover-art;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
StackPage {
|
Adw.Bin {
|
||||||
name: "not-empty";
|
name: "play-queue";
|
||||||
|
hexpand: true;
|
||||||
|
halign: fill;
|
||||||
|
margin-top: 48;
|
||||||
|
margin-bottom: 48;
|
||||||
|
margin-start: 24;
|
||||||
|
margin-end: 24;
|
||||||
|
|
||||||
child: ScrolledWindow {
|
child: ScrolledWindow {
|
||||||
hexpand: true;
|
hexpand: true;
|
||||||
|
|
Loading…
Reference in a new issue