musicus/data/ui/preferences_dialog.blp

104 lines
2.5 KiB
Text
Raw Permalink Normal View History

2025-03-16 14:06:57 +01:00
using Gtk 4.0;
using Adw 1;
template $MusicusPreferencesDialog: Adw.PreferencesDialog {
Adw.PreferencesPage {
title: _("Playback");
2025-03-23 16:04:14 +01:00
icon-name: "media-playback-start-symbolic";
2025-03-16 14:06:57 +01:00
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");
2025-03-23 16:04:14 +01:00
icon-name: "library-symbolic";
Adw.PreferencesGroup {
2025-04-27 15:22:04 +02:00
title: _("Metadata updates");
2025-04-27 15:22:04 +02:00
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;
}
2025-04-27 15:22:04 +02:00
Adw.EntryRow custom_library_url_row {
title: _("Library download URL");
show-apply-button: true;
}
}
}
2025-03-16 14:06:57 +01:00
}