diff --git a/resources/play_queue.blp b/resources/play_queue.blp index 18eafcf..59990c0 100644 --- a/resources/play_queue.blp +++ b/resources/play_queue.blp @@ -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 ; - 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 ; + 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;