Add preferences for default program

This commit is contained in:
Elias Projahn 2025-03-16 14:06:57 +01:00
parent 653d5cd629
commit fa94d61e1e
11 changed files with 367 additions and 28 deletions

41
data/ui/slider_row.blp Normal file
View file

@ -0,0 +1,41 @@
using Gtk 4.0;
using Adw 1;
template $MusicusSliderRow: Adw.PreferencesRow {
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.Label {
label: bind template.title;
wrap: true;
xalign: 0.0;
hexpand: true;
}
Gtk.Label value_label {
xalign: 1.0;
valign: center;
styles [
"numeric",
]
}
}
Gtk.Scale {
adjustment: bind template.adjustment;
hexpand: true;
valign: center;
}
}
}