mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 03:47:23 +01:00
library: Add export functionality
This commit is contained in:
parent
d49b9a9efe
commit
14416d49d2
11 changed files with 893 additions and 16 deletions
|
|
@ -62,6 +62,27 @@ template $MusicusLibraryManager: Adw.NavigationPage {
|
|||
activated => $export_archive() swapped;
|
||||
}
|
||||
}
|
||||
|
||||
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",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
65
data/ui/process_row.blp
Normal file
65
data/ui/process_row.blp
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
template $MusicusProcessRow: Gtk.ListBoxRow {
|
||||
activatable: false;
|
||||
|
||||
Gtk.Box {
|
||||
orientation: vertical;
|
||||
spacing: 12;
|
||||
margin-top: 12;
|
||||
margin-bottom: 12;
|
||||
margin-start: 12;
|
||||
margin-end: 12;
|
||||
|
||||
Gtk.Box {
|
||||
spacing: 12;
|
||||
|
||||
Gtk.Box {
|
||||
orientation: vertical;
|
||||
hexpand: true;
|
||||
|
||||
Gtk.Label description_label {
|
||||
wrap: true;
|
||||
xalign: 0.0;
|
||||
}
|
||||
|
||||
Gtk.Label success_label {
|
||||
label: _("Process finished");
|
||||
wrap: true;
|
||||
xalign: 0.0;
|
||||
visible: false;
|
||||
|
||||
styles [
|
||||
"success",
|
||||
"caption"
|
||||
]
|
||||
}
|
||||
|
||||
Gtk.Label error_label {
|
||||
wrap: true;
|
||||
visible: false;
|
||||
xalign: 0.0;
|
||||
|
||||
styles [
|
||||
"error",
|
||||
"caption"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.Button remove_button {
|
||||
icon-name: "window-close-symbolic";
|
||||
tooltip-text: _("Remove from list");
|
||||
valign: start;
|
||||
visible: false;
|
||||
clicked => $remove() swapped;
|
||||
|
||||
styles [
|
||||
"flat",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Gtk.ProgressBar progress_bar {}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue