musicus/data/ui/recording_editor.blp

136 lines
2.9 KiB
Text
Raw Normal View History

2025-01-15 11:23:04 +01:00
using Gtk 4.0;
using Adw 1;
template $MusicusRecordingEditor: Adw.NavigationPage {
title: _("Recording");
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: _("Recording");
xalign: 0;
margin-top: 24;
styles [
"heading",
2025-01-15 11:23:04 +01:00
]
}
Gtk.ListBox {
selection-mode: none;
margin-top: 12;
styles [
"boxed-list",
2025-01-15 11:23:04 +01:00
]
Adw.ActionRow work_row {
2025-03-01 08:34:53 +01:00
title: _("Select _work");
use-underline: true;
2025-01-15 11:23:04 +01:00
activatable: true;
activated => $select_work() swapped;
[prefix]
Gtk.Box select_work_box {
Gtk.Image {
icon-name: "document-edit-symbolic";
}
}
}
Adw.SpinRow year_row {
2025-03-01 08:34:53 +01:00
title: _("_Year");
use-underline: true;
2025-01-15 11:23:04 +01:00
adjustment: Gtk.Adjustment {
lower: 0;
upper: 3000;
value: 2000;
step-increment: 1;
page-increment: 10;
};
}
}
Gtk.Label {
label: _("Performers");
xalign: 0;
margin-top: 24;
styles [
"heading",
2025-01-15 11:23:04 +01:00
]
}
Gtk.ListBox performer_list {
selection-mode: none;
margin-top: 12;
styles [
"boxed-list",
2025-01-15 11:23:04 +01:00
]
Adw.ButtonRow {
2025-03-01 08:34:53 +01:00
title: _("Add _performer");
start-icon-name: "list-add-symbolic";
2025-03-01 08:34:53 +01:00
use-underline: true;
2025-01-15 11:23:04 +01:00
activated => $select_person() swapped;
}
}
Gtk.Label {
label: _("Ensembles");
xalign: 0;
margin-top: 24;
styles [
"heading",
2025-01-15 11:23:04 +01:00
]
}
Gtk.ListBox ensemble_list {
selection-mode: none;
margin-top: 12;
styles [
"boxed-list",
2025-01-15 11:23:04 +01:00
]
Adw.ButtonRow {
2025-03-01 08:34:53 +01:00
title: _("Add _ensemble");
use-underline: true;
start-icon-name: "list-add-symbolic";
2025-01-15 11:23:04 +01:00
activated => $select_ensemble() swapped;
}
}
2025-01-17 18:33:31 +01:00
Gtk.ListBox {
selection-mode: none;
2025-01-15 11:23:04 +01:00
margin-top: 24;
styles [
"boxed-list",
2025-01-15 11:23:04 +01:00
]
2025-01-17 18:33:31 +01:00
Adw.ButtonRow save_row {
2025-03-01 08:34:53 +01:00
title: _("_Create recording");
use-underline: true;
2025-01-17 18:33:31 +01:00
activated => $save() swapped;
}
2025-01-15 11:23:04 +01:00
}
}
}
}
}
}