mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
80 lines
1.5 KiB
Text
80 lines
1.5 KiB
Text
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.ActionRow {
|
|
title: _("Add _recording");
|
|
use-underline: true;
|
|
activatable: true;
|
|
activated => $select_recording() swapped;
|
|
|
|
[prefix]
|
|
Gtk.Box select_recording_box {
|
|
Gtk.Image {
|
|
icon-name: "list-add-symbolic";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Gtk.ListBox {
|
|
selection-mode: none;
|
|
margin-top: 24;
|
|
|
|
styles [
|
|
"boxed-list"
|
|
]
|
|
|
|
Adw.ButtonRow save_row {
|
|
title: _("_Create album");
|
|
use-underline: true;
|
|
activated => $save() swapped;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|