mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
103 lines
2.5 KiB
Text
103 lines
2.5 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: _("Metadata updates");
|
|
|
|
Adw.SwitchRow enable_automatic_metadata_updates_row {
|
|
title: _("Enable automatic metadata updates");
|
|
}
|
|
|
|
Adw.SwitchRow use_custom_metadata_url_row {
|
|
title: _("Use custom metadata URL");
|
|
active: false;
|
|
}
|
|
|
|
Adw.EntryRow custom_metadata_url_row {
|
|
title: _("Metadata download URL");
|
|
show-apply-button: true;
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup {
|
|
title: _("Library updates");
|
|
|
|
Adw.SwitchRow use_custom_library_url_row {
|
|
title: _("Use custom library URL");
|
|
active: false;
|
|
}
|
|
|
|
Adw.EntryRow custom_library_url_row {
|
|
title: _("Library download URL");
|
|
show-apply-button: true;
|
|
}
|
|
}
|
|
}
|
|
}
|