musicus/data/ui/library_manager.blp

296 lines
6.4 KiB
Text
Raw Normal View History

2023-11-07 16:21:47 +01:00
using Gtk 4.0;
using Adw 1;
2025-01-17 09:38:00 +01:00
template $MusicusLibraryManager: Adw.NavigationPage {
2023-11-07 16:21:47 +01:00
title: _("Music Library");
tag: "library";
Adw.ToolbarView {
[top]
Adw.HeaderBar {}
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
Gtk.ScrolledWindow {
Adw.Clamp {
Gtk.Box {
orientation: vertical;
margin-bottom: 24;
margin-start: 12;
margin-end: 12;
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
Gtk.Label {
label: _("Overview");
xalign: 0;
margin-top: 24;
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
styles [
"heading"
]
}
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
Gtk.ListBox {
selection-mode: none;
margin-top: 12;
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
styles [
"boxed-list-separate"
]
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
Adw.ActionRow library_path_row {
title: _("Library path");
activatable: true;
activated => $open_library() swapped;
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
styles [
"property"
]
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
[suffix]
Gtk.Image {
icon-name: "document-edit-symbolic";
}
}
Adw.ButtonRow {
title: _("Import from archive");
end-icon-name: "go-next-symbolic";
activated => $import_archive() swapped;
}
Adw.ButtonRow {
title: _("Export to archive");
end-icon-name: "go-next-symbolic";
activated => $export_archive() swapped;
}
}
Gtk.Label {
label: _("Contents");
xalign: 0;
margin-top: 24;
styles [
"heading"
]
}
Gtk.ListBox {
selection-mode: none;
margin-top: 12;
styles [
"boxed-list"
]
Adw.ActionRow {
title: _("Persons");
activatable: true;
activated => $show_persons() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_persons_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Roles");
activatable: true;
activated => $show_roles() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_roles_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Instruments");
activatable: true;
activated => $show_instruments() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_instruments_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Works");
activatable: true;
activated => $show_works() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_works_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Ensembles");
activatable: true;
activated => $show_ensembles() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_ensembles_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Recordings");
activatable: true;
activated => $show_recordings() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_recordings_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Tracks");
activatable: true;
activated => $show_tracks() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_tracks_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Mediums");
activatable: true;
activated => $show_mediums() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_mediums_label {
label: "0";
styles [
"numeric"
]
}
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
Adw.ActionRow {
title: _("Albums");
activatable: true;
activated => $show_albums() swapped;
[suffix]
Gtk.Box {
spacing: 6;
Gtk.Label n_albums_label {
label: "0";
styles [
"numeric"
]
}
2025-01-15 11:23:04 +01:00
2025-01-17 09:38:00 +01:00
Gtk.Image {
icon-name: "go-next-symbolic";
}
}
}
}
}
2025-01-15 11:23:04 +01:00
}
}
2023-11-07 16:21:47 +01:00
}
2025-01-17 09:38:00 +01:00
}