musicus/data/ui/process_row.blp

76 lines
1.3 KiB
Text
Raw Permalink Normal View History

2025-03-03 11:31:38 +01:00
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;
}
2025-03-23 14:57:43 +01:00
Gtk.Label message_label {
wrap: true;
xalign: 0.0;
visible: false;
styles [
"caption",
]
}
2025-03-03 11:31:38 +01:00
Gtk.Label success_label {
label: _("Process finished");
wrap: true;
xalign: 0.0;
visible: false;
styles [
"success",
2025-03-23 14:57:43 +01:00
"caption",
2025-03-03 11:31:38 +01:00
]
}
Gtk.Label error_label {
wrap: true;
visible: false;
xalign: 0.0;
styles [
"error",
2025-03-23 14:57:43 +01:00
"caption",
2025-03-03 11:31:38 +01:00
]
}
}
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 {}
}
}