musicus/data/ui/album_editor.blp

74 lines
1.3 KiB
Text
Raw Normal View History

2025-02-22 16:07:30 +01:00
using Gtk 4.0;
using Adw 1;
template $MusicusAlbumEditor: Adw.NavigationPage {
title: _("Album");
Adw.ToolbarView {
[top]
Adw.HeaderBar header_bar {}
Adw.Clamp {
Gtk.Box {
orientation: vertical;
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.ListBox recordings_list {
selection-mode: none;
margin-top: 12;
margin-bottom: 24;
styles [
"boxed-list"
]
Adw.ButtonRow {
2025-03-01 08:34:53 +01:00
title: _("Add _recording");
start-icon-name: "list-add-symbolic";
2025-03-01 08:34:53 +01:00
use-underline: true;
2025-02-22 16:07:30 +01:00
activated => $select_recording() swapped;
}
}
Gtk.ListBox {
selection-mode: none;
margin-top: 24;
styles [
"boxed-list"
]
Adw.ButtonRow save_row {
2025-03-01 08:34:53 +01:00
title: _("_Create album");
use-underline: true;
2025-02-22 16:07:30 +01:00
activated => $save() swapped;
}
}
}
}
}
}