2024-04-01 16:57:34 +02:00
|
|
|
using Gtk 4.0;
|
|
|
|
|
using Adw 1;
|
|
|
|
|
|
2024-05-31 13:57:14 +02:00
|
|
|
template $MusicusPersonEditor: Adw.NavigationPage {
|
2024-04-01 16:57:34 +02:00
|
|
|
title: _("Person");
|
|
|
|
|
|
|
|
|
|
Adw.ToolbarView {
|
|
|
|
|
[top]
|
|
|
|
|
Adw.HeaderBar header_bar {}
|
|
|
|
|
|
|
|
|
|
Adw.Clamp {
|
2024-06-05 19:03:04 +02:00
|
|
|
Gtk.Box {
|
|
|
|
|
orientation: vertical;
|
2024-05-31 13:57:14 +02:00
|
|
|
|
2024-06-05 19:03:04 +02:00
|
|
|
Gtk.Label {
|
|
|
|
|
label: _("Name");
|
|
|
|
|
xalign: 0;
|
|
|
|
|
margin-top: 24;
|
|
|
|
|
|
|
|
|
|
styles [
|
|
|
|
|
"heading"
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-05-31 13:57:14 +02:00
|
|
|
|
2024-06-05 19:03:04 +02:00
|
|
|
$MusicusTranslationEditor name_editor {
|
|
|
|
|
margin-top: 12;
|
|
|
|
|
}
|
2024-06-06 15:17:56 +02:00
|
|
|
|
|
|
|
|
Gtk.Button save_button {
|
|
|
|
|
margin-top: 24;
|
|
|
|
|
label: _("Create person");
|
|
|
|
|
clicked => $save() swapped;
|
|
|
|
|
|
|
|
|
|
styles [
|
|
|
|
|
"card",
|
|
|
|
|
"save"
|
|
|
|
|
]
|
|
|
|
|
}
|
2024-05-31 13:57:14 +02:00
|
|
|
}
|
2024-04-01 16:57:34 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|