mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
85 lines
2 KiB
Text
85 lines
2 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template $MusicusPreferencesDialog: Adw.PreferencesDialog {
|
|
Adw.PreferencesPage {
|
|
title: _("Playback");
|
|
icon-name: "media-playback-start-symbolic";
|
|
|
|
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");
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesPage {
|
|
title: _("Library");
|
|
icon-name: "library-symbolic";
|
|
|
|
Adw.PreferencesGroup {
|
|
title: _("Library download");
|
|
|
|
Adw.SwitchRow use_custom_url_row {
|
|
title: _("Use custom download URL");
|
|
active: false;
|
|
}
|
|
|
|
Adw.EntryRow custom_url_row {
|
|
title: _("Download URL");
|
|
show-apply-button: true;
|
|
}
|
|
}
|
|
}
|
|
}
|