editor: Add album editor

This commit is contained in:
Elias Projahn 2025-02-22 16:07:30 +01:00
parent c4162fd98a
commit a16dc446d6
8 changed files with 638 additions and 116 deletions

View file

@ -0,0 +1,42 @@
using Gtk 4.0;
using Adw 1;
template $MusicusLibraryManagerAlbumsPage: Adw.NavigationPage {
title: _("Albums");
Adw.ToolbarView {
[top]
Gtk.Box {
orientation: vertical;
Adw.HeaderBar {
[end]
Gtk.Button {
icon-name: "list-add-symbolic";
clicked => $create() swapped;
}
}
Adw.Clamp {
Gtk.SearchEntry search_entry {
placeholder-text: _("Search albums…");
search-changed => $search_changed() swapped;
}
}
}
Gtk.ScrolledWindow {
Adw.Clamp {
Gtk.ListBox list {
selection-mode: none;
margin-top: 12;
valign: start;
styles [
"boxed-list"
]
}
}
}
}
}