From a556fe7e29de66fe6b3a38d13f3f9e87069b6819 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Sun, 20 Oct 2024 17:43:06 +0200 Subject: [PATCH] placeholder albums nav page --- src/ui/window.blp | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/ui/window.blp b/src/ui/window.blp index d63e1c5..8b86f74 100644 --- a/src/ui/window.blp +++ b/src/ui/window.blp @@ -35,18 +35,36 @@ template $UiWindow: Adw.ApplicationWindow { } content: Adw.ViewStack stack { - Adw.ViewStackPage { - icon-name: "audio-input-microphone"; - title: _("Artists"); - - child: Box {}; - } - Adw.ViewStackPage { icon-name: "media-optical-cd"; title: _("Albums"); - child: Box {}; + child: Adw.NavigationView { + Adw.NavigationPage { + title: _("Albums"); + + child: Adw.ToolbarView { + [top] + CenterBox { + styles [ "toolbar" ] + + [center] + SearchEntry { + placeholder-text: _("Search..."); + } + + [end] + Box { + Button { + icon-name: "view-refresh"; + } + } + } + + GridView {} + }; + } + }; } Adw.ViewStackPage {