mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add preferences for default program
This commit is contained in:
parent
653d5cd629
commit
fa94d61e1e
11 changed files with 367 additions and 28 deletions
65
data/ui/preferences_dialog.blp
Normal file
65
data/ui/preferences_dialog.blp
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $MusicusPreferencesDialog: Adw.PreferencesDialog {
|
||||
Adw.PreferencesPage {
|
||||
title: _("Playback");
|
||||
|
||||
Adw.PreferencesGroup {
|
||||
title: _("Default program");
|
||||
description: _("These settings apply when you add search results to the playlist.");
|
||||
|
||||
$MusicusSliderRow {
|
||||
title: _("Prefer recordings that haven't been played for a long time");
|
||||
suffix: _("%");
|
||||
|
||||
adjustment: Gtk.Adjustment prefer_least_recently_played_adjustment {
|
||||
lower: 0;
|
||||
upper: 100;
|
||||
step-increment: 1;
|
||||
page-increment: 10;
|
||||
};
|
||||
}
|
||||
|
||||
$MusicusSliderRow {
|
||||
title: _("Prefer recordings that were recently added");
|
||||
suffix: _("%");
|
||||
|
||||
adjustment: Gtk.Adjustment prefer_recently_added_adjustment {
|
||||
lower: 0;
|
||||
upper: 100;
|
||||
step-increment: 1;
|
||||
page-increment: 10;
|
||||
};
|
||||
}
|
||||
|
||||
$MusicusSliderRow {
|
||||
title: _("Avoid repeating composers");
|
||||
suffix: _(" min");
|
||||
|
||||
adjustment: Gtk.Adjustment avoid_repeated_composers_adjustment {
|
||||
lower: 0;
|
||||
upper: 120;
|
||||
step-increment: 10;
|
||||
page-increment: 30;
|
||||
};
|
||||
}
|
||||
|
||||
$MusicusSliderRow {
|
||||
title: _("Avoid repeating instruments");
|
||||
suffix: _(" min");
|
||||
|
||||
adjustment: Gtk.Adjustment avoid_repeated_instruments_adjustment {
|
||||
lower: 0;
|
||||
upper: 120;
|
||||
step-increment: 10;
|
||||
page-increment: 30;
|
||||
};
|
||||
}
|
||||
|
||||
Adw.SwitchRow play_full_recordings_row {
|
||||
title: _("Play full recordings");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue