Impleme library downloads

This commit is contained in:
Elias Projahn 2025-03-23 14:57:43 +01:00
parent a21a63e4b8
commit bf1ffef05a
13 changed files with 1231 additions and 46 deletions

View file

@ -61,6 +61,12 @@ template $MusicusLibraryManager: Adw.NavigationPage {
end-icon-name: "go-next-symbolic";
activated => $export_archive() swapped;
}
Adw.ButtonRow {
title: _("Update default library");
end-icon-name: "go-next-symbolic";
activated => $update_default_library() swapped;
}
}
Gtk.Label {

View file

@ -23,6 +23,16 @@ template $MusicusProcessRow: Gtk.ListBoxRow {
xalign: 0.0;
}
Gtk.Label message_label {
wrap: true;
xalign: 0.0;
visible: false;
styles [
"caption",
]
}
Gtk.Label success_label {
label: _("Process finished");
wrap: true;
@ -31,7 +41,7 @@ template $MusicusProcessRow: Gtk.ListBoxRow {
styles [
"success",
"caption"
"caption",
]
}
@ -42,7 +52,7 @@ template $MusicusProcessRow: Gtk.ListBoxRow {
styles [
"error",
"caption"
"caption",
]
}
}

View file

@ -81,6 +81,8 @@ template $MusicusSearchPage: Adw.NavigationPage {
}
Gtk.Stack stack {
vhomogeneous: false;
Gtk.StackPage {
name: "results";
@ -247,6 +249,7 @@ template $MusicusSearchPage: Adw.NavigationPage {
icon-name: "system-search-symbolic";
title: _("Nothing Found");
description: _("Try a different search.");
vexpand: true;
};
}
}