mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add work and recording editor
This commit is contained in:
parent
36b2f1097e
commit
364557d959
30 changed files with 3308 additions and 418 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue