mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-27 04:07:25 +01:00
editor: First changes for work editor
This commit is contained in:
parent
15ba043050
commit
55b344605b
19 changed files with 1291 additions and 19 deletions
|
|
@ -1,20 +1,27 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $MusicusTranslationEntry : Adw.EntryRow {
|
||||
template $MusicusTranslationEntry: Adw.EntryRow {
|
||||
title: _("Translated name");
|
||||
|
||||
Gtk.Button {
|
||||
icon-name: "edit-delete-symbolic";
|
||||
icon-name: "user-trash-symbolic";
|
||||
valign: center;
|
||||
clicked => $remove() swapped;
|
||||
styles ["flat"]
|
||||
|
||||
styles [
|
||||
"flat"
|
||||
]
|
||||
}
|
||||
|
||||
Gtk.Button {
|
||||
valign: center;
|
||||
clicked => $open_lang_popover() swapped;
|
||||
|
||||
styles [
|
||||
"flat"
|
||||
]
|
||||
|
||||
Gtk.Box {
|
||||
spacing: 6;
|
||||
|
||||
|
|
@ -38,7 +45,10 @@ template $MusicusTranslationEntry : Adw.EntryRow {
|
|||
Gtk.Label {
|
||||
label: _("Language code");
|
||||
halign: start;
|
||||
styles ["heading"]
|
||||
|
||||
styles [
|
||||
"heading"
|
||||
]
|
||||
}
|
||||
|
||||
Gtk.Label {
|
||||
|
|
@ -48,7 +58,10 @@ template $MusicusTranslationEntry : Adw.EntryRow {
|
|||
wrap: true;
|
||||
max-width-chars: 40;
|
||||
halign: start;
|
||||
styles ["dim-label"]
|
||||
|
||||
styles [
|
||||
"dim-label"
|
||||
]
|
||||
}
|
||||
|
||||
Gtk.Entry lang_entry {}
|
||||
|
|
@ -56,4 +69,4 @@ template $MusicusTranslationEntry : Adw.EntryRow {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue