mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
editor: Add missing margins
This commit is contained in:
parent
757022393f
commit
a13e406e99
5 changed files with 170 additions and 145 deletions
|
|
@ -8,68 +8,73 @@ template $MusicusAlbumEditor: Adw.NavigationPage {
|
||||||
[top]
|
[top]
|
||||||
Adw.HeaderBar header_bar {}
|
Adw.HeaderBar header_bar {}
|
||||||
|
|
||||||
Adw.Clamp {
|
Gtk.ScrolledWindow {
|
||||||
Gtk.Box {
|
Adw.Clamp {
|
||||||
orientation: vertical;
|
Gtk.Box {
|
||||||
|
orientation: vertical;
|
||||||
|
margin-bottom: 24;
|
||||||
|
margin-start: 12;
|
||||||
|
margin-end: 12;
|
||||||
|
|
||||||
Gtk.Label {
|
Gtk.Label {
|
||||||
label: _("Name");
|
label: _("Name");
|
||||||
xalign: 0;
|
xalign: 0;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"heading",
|
"heading",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
$MusicusTranslationEditor name_editor {
|
$MusicusTranslationEditor name_editor {
|
||||||
margin-top: 12;
|
|
||||||
}
|
|
||||||
|
|
||||||
Gtk.Label {
|
|
||||||
label: _("Recordings");
|
|
||||||
xalign: 0;
|
|
||||||
margin-top: 24;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"heading",
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Gtk.Box recordings_box {
|
|
||||||
Gtk.ListBox recordings_list {
|
|
||||||
selection-mode: none;
|
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
margin-bottom: 24;
|
}
|
||||||
hexpand: true;
|
|
||||||
|
Gtk.Label {
|
||||||
|
label: _("Recordings");
|
||||||
|
xalign: 0;
|
||||||
|
margin-top: 24;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"heading",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
Gtk.Box recordings_box {
|
||||||
|
Gtk.ListBox recordings_list {
|
||||||
|
selection-mode: none;
|
||||||
|
margin-top: 12;
|
||||||
|
margin-bottom: 24;
|
||||||
|
hexpand: true;
|
||||||
|
|
||||||
|
styles [
|
||||||
|
"boxed-list",
|
||||||
|
]
|
||||||
|
|
||||||
|
Adw.ButtonRow {
|
||||||
|
title: _("Add _recording");
|
||||||
|
start-icon-name: "list-add-symbolic";
|
||||||
|
use-underline: true;
|
||||||
|
activated => $select_recording() swapped;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Gtk.ListBox {
|
||||||
|
selection-mode: none;
|
||||||
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"boxed-list",
|
"boxed-list",
|
||||||
]
|
]
|
||||||
|
|
||||||
Adw.ButtonRow {
|
Adw.ButtonRow save_row {
|
||||||
title: _("Add _recording");
|
title: _("_Create album");
|
||||||
start-icon-name: "list-add-symbolic";
|
|
||||||
use-underline: true;
|
use-underline: true;
|
||||||
activated => $select_recording() swapped;
|
activated => $save() swapped;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk.ListBox {
|
|
||||||
selection-mode: none;
|
|
||||||
margin-top: 24;
|
|
||||||
|
|
||||||
styles [
|
|
||||||
"boxed-list",
|
|
||||||
]
|
|
||||||
|
|
||||||
Adw.ButtonRow save_row {
|
|
||||||
title: _("_Create album");
|
|
||||||
use-underline: true;
|
|
||||||
activated => $save() swapped;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,36 +8,41 @@ template $MusicusEnsembleEditor: Adw.NavigationPage {
|
||||||
[top]
|
[top]
|
||||||
Adw.HeaderBar header_bar {}
|
Adw.HeaderBar header_bar {}
|
||||||
|
|
||||||
Adw.Clamp {
|
Gtk.ScrolledWindow {
|
||||||
Gtk.Box {
|
Adw.Clamp {
|
||||||
orientation: vertical;
|
Gtk.Box {
|
||||||
|
orientation: vertical;
|
||||||
|
margin-bottom: 24;
|
||||||
|
margin-start: 12;
|
||||||
|
margin-end: 12;
|
||||||
|
|
||||||
Gtk.Label {
|
Gtk.Label {
|
||||||
label: _("Name");
|
label: _("Name");
|
||||||
xalign: 0;
|
xalign: 0;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"heading"
|
"heading",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
$MusicusTranslationEditor name_editor {
|
$MusicusTranslationEditor name_editor {
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk.ListBox {
|
Gtk.ListBox {
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"boxed-list"
|
"boxed-list",
|
||||||
]
|
]
|
||||||
|
|
||||||
Adw.ButtonRow save_row {
|
Adw.ButtonRow save_row {
|
||||||
title: _("_Create ensemble");
|
title: _("_Create ensemble");
|
||||||
use-underline: true;
|
use-underline: true;
|
||||||
activated => $save() swapped;
|
activated => $save() swapped;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,36 +8,41 @@ template $MusicusInstrumentEditor: Adw.NavigationPage {
|
||||||
[top]
|
[top]
|
||||||
Adw.HeaderBar header_bar {}
|
Adw.HeaderBar header_bar {}
|
||||||
|
|
||||||
Adw.Clamp {
|
Gtk.ScrolledWindow {
|
||||||
Gtk.Box {
|
Adw.Clamp {
|
||||||
orientation: vertical;
|
Gtk.Box {
|
||||||
|
orientation: vertical;
|
||||||
|
margin-bottom: 24;
|
||||||
|
margin-start: 12;
|
||||||
|
margin-end: 12;
|
||||||
|
|
||||||
Gtk.Label {
|
Gtk.Label {
|
||||||
label: _("Name");
|
label: _("Name");
|
||||||
xalign: 0;
|
xalign: 0;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"heading"
|
"heading",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
$MusicusTranslationEditor name_editor {
|
$MusicusTranslationEditor name_editor {
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk.ListBox {
|
Gtk.ListBox {
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"boxed-list"
|
"boxed-list",
|
||||||
]
|
]
|
||||||
|
|
||||||
Adw.ButtonRow save_row {
|
Adw.ButtonRow save_row {
|
||||||
title: _("_Create instrument");
|
title: _("_Create instrument");
|
||||||
use-underline: true;
|
use-underline: true;
|
||||||
activated => $save() swapped;
|
activated => $save() swapped;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,36 +8,41 @@ template $MusicusPersonEditor: Adw.NavigationPage {
|
||||||
[top]
|
[top]
|
||||||
Adw.HeaderBar header_bar {}
|
Adw.HeaderBar header_bar {}
|
||||||
|
|
||||||
Adw.Clamp {
|
Gtk.ScrolledWindow {
|
||||||
Gtk.Box {
|
Adw.Clamp {
|
||||||
orientation: vertical;
|
Gtk.Box {
|
||||||
|
orientation: vertical;
|
||||||
|
margin-bottom: 24;
|
||||||
|
margin-start: 12;
|
||||||
|
margin-end: 12;
|
||||||
|
|
||||||
Gtk.Label {
|
Gtk.Label {
|
||||||
label: _("Name");
|
label: _("Name");
|
||||||
xalign: 0;
|
xalign: 0;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"heading"
|
"heading",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
$MusicusTranslationEditor name_editor {
|
$MusicusTranslationEditor name_editor {
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk.ListBox {
|
Gtk.ListBox {
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"boxed-list"
|
"boxed-list",
|
||||||
]
|
]
|
||||||
|
|
||||||
Adw.ButtonRow save_row {
|
Adw.ButtonRow save_row {
|
||||||
title: _("_Create person");
|
title: _("_Create person");
|
||||||
use-underline: true;
|
use-underline: true;
|
||||||
activated => $save() swapped;
|
activated => $save() swapped;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,36 +8,41 @@ template $MusicusRoleEditor: Adw.NavigationPage {
|
||||||
[top]
|
[top]
|
||||||
Adw.HeaderBar header_bar {}
|
Adw.HeaderBar header_bar {}
|
||||||
|
|
||||||
Adw.Clamp {
|
Gtk.ScrolledWindow {
|
||||||
Gtk.Box {
|
Adw.Clamp {
|
||||||
orientation: vertical;
|
Gtk.Box {
|
||||||
|
orientation: vertical;
|
||||||
|
margin-bottom: 24;
|
||||||
|
margin-start: 12;
|
||||||
|
margin-end: 12;
|
||||||
|
|
||||||
Gtk.Label {
|
Gtk.Label {
|
||||||
label: _("Name");
|
label: _("Name");
|
||||||
xalign: 0;
|
xalign: 0;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"heading"
|
"heading",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
$MusicusTranslationEditor name_editor {
|
$MusicusTranslationEditor name_editor {
|
||||||
margin-top: 12;
|
margin-top: 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk.ListBox {
|
Gtk.ListBox {
|
||||||
selection-mode: none;
|
selection-mode: none;
|
||||||
margin-top: 24;
|
margin-top: 24;
|
||||||
|
|
||||||
styles [
|
styles [
|
||||||
"boxed-list"
|
"boxed-list",
|
||||||
]
|
]
|
||||||
|
|
||||||
Adw.ButtonRow save_row {
|
Adw.ButtonRow save_row {
|
||||||
title: _("_Create role");
|
title: _("_Create role");
|
||||||
use-underline: true;
|
use-underline: true;
|
||||||
activated => $save() swapped;
|
activated => $save() swapped;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue