Basic SteamGridDB support

This commit is contained in:
kramo
2023-04-04 17:35:36 +02:00
parent 1e484e03f2
commit 45be2eb165
14 changed files with 257 additions and 67 deletions

View File

@@ -202,4 +202,38 @@ template PreferencesWindow : Adw.PreferencesWindow {
}
}
}
Adw.PreferencesPage sgdb_page {
name: "sgdb";
title: _("SteamGridDB");
icon-name: "image-x-generic-symbolic";
Adw.PreferencesGroup sgdb_key_group {
title: _("Authentication");
description: _("An API Key is required to use SteamGridDB. You can generate one <a href=\"https://www.steamgriddb.com/profile/preferences/api\">here</a>.");
Adw.EntryRow sgdb_key_entry_row {
title: _("API Key");
}
}
Adw.PreferencesGroup sgdb_behavior_group {
title: _("Behavior");
Adw.ActionRow {
title: _("Download Images on Import");
Switch sgdb_download_switch {
valign: center;
}
}
Adw.ActionRow {
title: _("Prefer Over Official Images");
Switch sgdb_prefer_switch {
valign: center;
}
}
}
}
}