editor: Fix popover parents

This commit is contained in:
Elias Projahn 2025-03-01 11:13:29 +01:00
parent 5956b7ff15
commit 757022393f
6 changed files with 88 additions and 74 deletions

View file

@ -18,7 +18,7 @@ template $MusicusAlbumEditor: Adw.NavigationPage {
margin-top: 24;
styles [
"heading"
"heading",
]
}
@ -32,24 +32,27 @@ template $MusicusAlbumEditor: Adw.NavigationPage {
margin-top: 24;
styles [
"heading"
"heading",
]
}
Gtk.ListBox recordings_list {
selection-mode: none;
margin-top: 12;
margin-bottom: 24;
Gtk.Box recordings_box {
Gtk.ListBox recordings_list {
selection-mode: none;
margin-top: 12;
margin-bottom: 24;
hexpand: true;
styles [
"boxed-list"
]
styles [
"boxed-list",
]
Adw.ButtonRow {
title: _("Add _recording");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $select_recording() swapped;
Adw.ButtonRow {
title: _("Add _recording");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $select_recording() swapped;
}
}
}
@ -58,7 +61,7 @@ template $MusicusAlbumEditor: Adw.NavigationPage {
margin-top: 24;
styles [
"boxed-list"
"boxed-list",
]
Adw.ButtonRow save_row {

View file

@ -72,19 +72,22 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
]
}
Gtk.ListBox performer_list {
selection-mode: none;
margin-top: 12;
Gtk.Box performers_box {
Gtk.ListBox performer_list {
selection-mode: none;
margin-top: 12;
hexpand: true;
styles [
"boxed-list",
]
styles [
"boxed-list",
]
Adw.ButtonRow {
title: _("Add _performer");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $select_person() swapped;
Adw.ButtonRow {
title: _("Add _performer");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $select_person() swapped;
}
}
}
@ -98,19 +101,22 @@ template $MusicusRecordingEditor: Adw.NavigationPage {
]
}
Gtk.ListBox ensemble_list {
selection-mode: none;
margin-top: 12;
Gtk.Box ensembles_box {
Gtk.ListBox ensemble_list {
selection-mode: none;
margin-top: 12;
hexpand: true;
styles [
"boxed-list",
]
styles [
"boxed-list",
]
Adw.ButtonRow {
title: _("Add _ensemble");
use-underline: true;
start-icon-name: "list-add-symbolic";
activated => $select_ensemble() swapped;
Adw.ButtonRow {
title: _("Add _ensemble");
use-underline: true;
start-icon-name: "list-add-symbolic";
activated => $select_ensemble() swapped;
}
}
}

View file

@ -40,19 +40,22 @@ template $MusicusWorkEditor: Adw.NavigationPage {
]
}
Gtk.ListBox composer_list {
selection-mode: none;
margin-top: 12;
Gtk.Box composers_box {
Gtk.ListBox composer_list {
selection-mode: none;
margin-top: 12;
hexpand: true;
styles [
"boxed-list",
]
styles [
"boxed-list",
]
Adw.ButtonRow {
title: _("Add _composer");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $add_person() swapped;
Adw.ButtonRow {
title: _("Add _composer");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $add_person() swapped;
}
}
}
@ -92,20 +95,22 @@ template $MusicusWorkEditor: Adw.NavigationPage {
]
}
Gtk.ListBox instrument_list {
selection-mode: none;
margin-top: 12;
margin-bottom: 24;
Gtk.Box instruments_box {
Gtk.ListBox instrument_list {
selection-mode: none;
margin-top: 12;
hexpand: true;
styles [
"boxed-list",
]
styles [
"boxed-list",
]
Adw.ButtonRow {
title: _("Add _instrument");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $add_instrument() swapped;
Adw.ButtonRow {
title: _("Add _instrument");
start-icon-name: "list-add-symbolic";
use-underline: true;
activated => $add_instrument() swapped;
}
}
}