Implement deletion

This commit is contained in:
Elias Projahn 2025-03-09 14:27:50 +01:00
parent b25d7fe8ee
commit 751dcde351
8 changed files with 340 additions and 40 deletions

39
data/ui/error_dialog.blp Normal file
View file

@ -0,0 +1,39 @@
using Gtk 4.0;
using Adw 1;
template $MusicusErrorDialog: Adw.Dialog {
content-width: 600;
content-height: 400;
Adw.ToastOverlay toast_overlay {
Adw.ToolbarView {
[top]
Adw.HeaderBar {
title-widget: Adw.WindowTitle {
title: _("Error");
};
[end]
Gtk.Button {
icon-name: "edit-copy-symbolic";
tooltip-text: _("Copy details to clipboard");
clicked => $copy() swapped;
styles [
"flat",
]
}
}
Gtk.ScrolledWindow {
Gtk.Label error_label {
xalign: 0.0;
margin-start: 12;
margin-end: 12;
margin-top: 12;
margin-bottom: 12;
}
}
}
}
}

View file

@ -1,27 +1,30 @@
using Gtk 4.0;
using Adw 1;
template $MusicusWindow : Adw.ApplicationWindow {
template $MusicusWindow: Adw.ApplicationWindow {
title: _("Musicus");
Adw.ToolbarView {
Gtk.Stack stack {
transition-type: over_up_down;
Adw.ToastOverlay toast_overlay {
Adw.ToolbarView {
Gtk.Stack stack {
transition-type: over_up_down;
Gtk.StackPage {
name: "navigation";
child: Adw.NavigationView navigation_view {
$MusicusWelcomePage {
folder-selected => $set_library_folder() swapped;
}
};
Gtk.StackPage {
name: "navigation";
child: Adw.NavigationView navigation_view {
$MusicusWelcomePage {
folder-selected => $set_library_folder() swapped;
}
};
}
}
[bottom]
Gtk.Revealer player_bar_revealer {
reveal-child: true;
transition-type: slide_up;
}
}
[bottom]
Gtk.Revealer player_bar_revealer {
reveal-child: true;
transition-type: slide_up;
}
}
}
}