mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
editor: Implement drag and drop where it makes sense
This commit is contained in:
parent
a13e406e99
commit
e47b7c2006
31 changed files with 888 additions and 87 deletions
23
data/ui/editor/work/instrument_row.blp
Normal file
23
data/ui/editor/work/instrument_row.blp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $MusicusWorkEditorInstrumentRow: Adw.ActionRow {
|
||||
[prefix]
|
||||
Gtk.Image {
|
||||
icon-name: "list-drag-handle-symbolic";
|
||||
|
||||
styles [
|
||||
"drag-handle",
|
||||
]
|
||||
}
|
||||
|
||||
Gtk.Button {
|
||||
icon-name: "user-trash-symbolic";
|
||||
valign: center;
|
||||
clicked => $remove() swapped;
|
||||
|
||||
styles [
|
||||
"flat",
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue