center status page

This commit is contained in:
Erica Z 2024-11-13 18:51:55 +01:00
parent 5f46cf2b77
commit 2916fa8f71

View file

@ -2,52 +2,52 @@ using Gtk 4.0;
using Adw 1;
template $AudreyUiPlayQueue: Adw.Bin {
child: Box {
name: "play-queue-page";
homogeneous: true;
child: Stack {
visible-child-name: bind $visible_child_name(template.model as <$GListStore>.n-items) as <string>;
Adw.Clamp {
halign: center;
margin-top: 24;
margin-bottom: 24;
margin-start: 24;
margin-end: 24;
StackPage {
name: "empty";
Picture {
valign: center;
styles [
"frame"
]
halign: center;
paintable: bind template.playing-cover-art;
}
child: Adw.StatusPage {
icon-name: "list-remove-all";
title: "No songs queued";
};
}
Adw.Bin {
name: "play-queue";
hexpand: true;
halign: fill;
margin-top: 48;
margin-bottom: 48;
margin-start: 24;
margin-end: 24;
StackPage {
name: "not-empty";
child: Stack {
visible-child-name: bind $visible_child_name(template.model as <$GListStore>.n-items) as <string>;
child: Box {
name: "play-queue-page";
homogeneous: true;
StackPage {
name: "empty";
Adw.Clamp {
halign: center;
margin-top: 24;
margin-bottom: 24;
margin-start: 24;
margin-end: 24;
child: Adw.StatusPage {
icon-name: "list-remove-all";
title: "No songs queued";
};
Picture {
valign: center;
styles [
"frame"
]
halign: center;
paintable: bind template.playing-cover-art;
}
}
StackPage {
name: "not-empty";
Adw.Bin {
name: "play-queue";
hexpand: true;
halign: fill;
margin-top: 48;
margin-bottom: 48;
margin-start: 24;
margin-end: 24;
child: ScrolledWindow {
hexpand: true;