musicus/data/ui/editor/album.blp
Elias Projahn 47a2e06a17 db: Add source to items
This also adds the missing update fields for mediums and albums.
2025-10-26 10:16:43 +01:00

91 lines
2 KiB
Text

using Gtk 4.0;
using Adw 1;
template $MusicusAlbumEditor: Adw.NavigationPage {
title: _("Album");
Adw.ToolbarView {
[top]
Adw.HeaderBar header_bar {}
Gtk.ScrolledWindow {
Adw.Clamp {
Gtk.Box {
orientation: vertical;
margin-bottom: 24;
margin-start: 12;
margin-end: 12;
Gtk.Label {
label: _("Name");
xalign: 0;
margin-top: 24;
styles [
"heading",
]
}
$MusicusTranslationEditor name_editor {
margin-top: 12;
}
Gtk.Label {
label: _("Recordings");
xalign: 0;
margin-top: 24;
styles [
"heading",
]
}
Gtk.Box recordings_box {
Gtk.ListBox recordings_list {
selection-mode: none;
margin-top: 12;
margin-bottom: 24;
hexpand: true;
styles [
"boxed-list",
]
Adw.ButtonRow {
title: _("Add _recording");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $select_recording() swapped;
}
}
}
Gtk.ListBox {
selection-mode: none;
margin-top: 24;
styles [
"boxed-list-separate",
]
Adw.SwitchRow enable_updates_row {
title: _("Enable updates");
subtitle: _("Keep this item up to date with the online metadata library");
active: true;
}
Adw.ButtonRow save_row {
title: _("_Create album");
use-underline: true;
activated => $save() swapped;
styles [
"suggested-action",
]
}
}
}
}
}
}
}