Add work and recording editor

This commit is contained in:
Elias Projahn 2025-01-15 11:23:04 +01:00
parent 36b2f1097e
commit 364557d959
30 changed files with 3308 additions and 418 deletions

View file

@ -1,8 +1,11 @@
using Gtk 4.0;
using Adw 1;
template $MusicusRecordingTile : Gtk.FlowBoxChild {
styles ["card", "activatable", "tile"]
template $MusicusRecordingTile: Gtk.FlowBoxChild {
styles [
"card",
"activatable",
"tile"
]
Gtk.Box {
spacing: 12;
@ -16,31 +19,52 @@ template $MusicusRecordingTile : Gtk.FlowBoxChild {
Gtk.Box {
orientation: vertical;
hexpand: true;
Gtk.Label work_label {
styles ["work"]
styles [
"work"
]
halign: start;
wrap: true;
}
Gtk.Label composer_label {
styles ["composer"]
styles [
"composer"
]
halign: start;
wrap: true;
}
Gtk.Label performances_label {
styles ["performances", "dim-label"]
styles [
"performances",
"dim-label"
]
halign: start;
wrap: true;
}
}
Gtk.Button {
styles ["flat"]
Gtk.MenuButton {
styles [
"flat"
]
valign: start;
margin-top: 12;
icon-name: "view-more-symbolic";
popover: Gtk.PopoverMenu {
menu-model: edit_menu;
};
}
}
}
}
menu edit_menu {
item (_("Edit recording"), "recording.edit")
}