musicus/data/ui/library_manager.blp

97 lines
2.1 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 [
2025-03-02 16:06:31 +01:00
"heading",
2025-01-17 09:38:00 +01:00
]
}
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 [
2025-03-02 16:06:31 +01:00
"boxed-list-separate",
2025-01-17 09:38:00 +01:00
]
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 [
2025-03-02 16:06:31 +01:00
"property",
2025-01-17 09:38:00 +01:00
]
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;
}
2025-03-23 14:57:43 +01:00
Adw.ButtonRow {
title: _("Update default library");
end-icon-name: "go-next-symbolic";
activated => $update_default_library() swapped;
}
2025-01-17 09:38:00 +01:00
}
2025-03-03 11:31:38 +01:00
Gtk.Label {
label: _("Progress");
visible: bind process_list.visible;
xalign: 0;
margin-top: 24;
styles [
"heading",
]
}
Gtk.ListBox process_list {
selection-mode: none;
margin-top: 12;
visible: false;
styles [
"boxed-list-separate",
]
}
2025-01-17 09:38:00 +01:00
}
2025-01-15 11:23:04 +01:00
}
}
2023-11-07 16:21:47 +01:00
}
2025-01-17 09:38:00 +01:00
}