240 lines
5.5 KiB
Plaintext
240 lines
5.5 KiB
Plaintext
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
template PreferencesWindow : Adw.PreferencesWindow {
|
|
default-height: 500;
|
|
|
|
Adw.PreferencesPage general_page {
|
|
name: "general";
|
|
title: _("General");
|
|
icon-name: "user-home-symbolic";
|
|
|
|
Adw.PreferencesGroup behavior_group {
|
|
title: _("Behavior");
|
|
|
|
Adw.ActionRow {
|
|
title: _("Exit After Launching Games");
|
|
|
|
Switch exit_after_launch_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: _("Cover Image Launches Game");
|
|
subtitle: _("Swaps the behavior of the cover image and the play button");
|
|
|
|
Switch cover_launches_game_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup images_group {
|
|
title: _("Images");
|
|
|
|
Adw.ActionRow {
|
|
title: _("High Quality Images");
|
|
subtitle: _("Save game covers losslessly at the cost of storage");
|
|
|
|
Switch high_quality_images_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup danger_zone_group {
|
|
title: _("Danger Zone");
|
|
|
|
Adw.ActionRow {
|
|
title: _("Remove All Games");
|
|
|
|
Button remove_all_games_button {
|
|
label: _("Remove");
|
|
valign: center;
|
|
|
|
styles [
|
|
"destructive-action",
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesPage import_page {
|
|
name: "import";
|
|
title: _("Import");
|
|
icon-name: "document-save-symbolic";
|
|
|
|
Adw.PreferencesGroup sources_group {
|
|
title: _("Sources");
|
|
|
|
Adw.ExpanderRow steam_expander_row {
|
|
title: _("Steam");
|
|
show-enable-switch: true;
|
|
|
|
Adw.ActionRow {
|
|
title: _("Steam Install Location");
|
|
subtitle: _("Directory to use when importing games");
|
|
|
|
Button steam_file_chooser_button {
|
|
icon-name: "folder-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
Adw.ActionRow {
|
|
title: _("Extra Steam Libraries");
|
|
subtitle: _("Select other directories where you have Steam games installed");
|
|
|
|
|
|
Revealer steam_clear_button_revealer {
|
|
reveal-child: false;
|
|
transition-type: slide_left;
|
|
Button steam_clear_button {
|
|
label: _("Clear");
|
|
valign: center;
|
|
halign: end;
|
|
|
|
styles [
|
|
"destructive-action",
|
|
]
|
|
}
|
|
}
|
|
|
|
Button steam_extra_file_chooser_button {
|
|
icon-name: "folder-new-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.ExpanderRow lutris_expander_row {
|
|
title: _("Lutris");
|
|
show-enable-switch: true;
|
|
|
|
Adw.ActionRow {
|
|
title: _("Lutris Install Location");
|
|
subtitle: _("Directory to use when importing games");
|
|
|
|
Button lutris_file_chooser_button {
|
|
icon-name: "folder-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
Adw.ActionRow {
|
|
title: _("Lutris Cache Location");
|
|
subtitle: _("Directory to use when importing game covers");
|
|
|
|
Button lutris_cache_file_chooser_button {
|
|
icon-name: "folder-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.ExpanderRow heroic_expander_row {
|
|
title: _("Heroic");
|
|
show-enable-switch: true;
|
|
|
|
Adw.ActionRow {
|
|
title: _("Heroic Install Location");
|
|
subtitle: _("Directory to use when importing games");
|
|
|
|
Button heroic_file_chooser_button {
|
|
icon-name: "folder-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: _("Import Epic Games");
|
|
|
|
Switch heroic_epic_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: _("Import GOG Games");
|
|
|
|
Switch heroic_gog_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: _("Import Sideloaded Games");
|
|
|
|
Switch heroic_sideloaded_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.ExpanderRow bottles_expander_row {
|
|
title: _("Bottles");
|
|
show-enable-switch: true;
|
|
|
|
Adw.ActionRow {
|
|
title: _("Bottles Install Location");
|
|
subtitle: _("Directory to use when importing games");
|
|
|
|
Button bottles_file_chooser_button {
|
|
icon-name: "folder-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.ExpanderRow itch_expander_row {
|
|
title: _("itch");
|
|
show-enable-switch: true;
|
|
|
|
Adw.ActionRow {
|
|
title: _("itch Install Location");
|
|
subtitle: _("Directory to use when importing games");
|
|
|
|
Button itch_file_chooser_button {
|
|
icon-name: "folder-symbolic";
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesPage sgdb_page {
|
|
name: "sgdb";
|
|
title: _("SteamGridDB");
|
|
icon-name: "image-x-generic-symbolic";
|
|
|
|
Adw.PreferencesGroup sgdb_key_group {
|
|
title: _("Authentication");
|
|
|
|
Adw.EntryRow sgdb_key_entry_row {
|
|
title: _("API Key");
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup sgdb_behavior_group {
|
|
title: _("Behavior");
|
|
|
|
Adw.ActionRow {
|
|
title: _("Use SteamGridDB");
|
|
subtitle: _("Download images when adding or importing games");
|
|
|
|
Switch sgdb_download_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
Adw.ActionRow {
|
|
title: _("Prefer Over Official Images");
|
|
|
|
Switch sgdb_prefer_switch {
|
|
valign: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|