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
|
|
@ -5,6 +5,15 @@ template $MusicusWorkEditorPartRow: Adw.ActionRow {
|
|||
activatable: true;
|
||||
activated => $edit() swapped;
|
||||
|
||||
[prefix]
|
||||
Gtk.Image {
|
||||
icon-name: "list-drag-handle-symbolic";
|
||||
|
||||
styles [
|
||||
"drag-handle",
|
||||
]
|
||||
}
|
||||
|
||||
Gtk.Image {
|
||||
icon-name: "document-edit-symbolic";
|
||||
}
|
||||
|
|
@ -15,7 +24,7 @@ template $MusicusWorkEditorPartRow: Adw.ActionRow {
|
|||
clicked => $remove() swapped;
|
||||
|
||||
styles [
|
||||
"flat"
|
||||
"flat",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue