Add option to launch games by clicking cover

This commit is contained in:
kramo
2023-03-26 11:03:23 +02:00
parent 2cc9f638a7
commit 228db1b2f0
6 changed files with 70 additions and 25 deletions

View File

@@ -32,7 +32,6 @@ template game : Box {
Box {
Button button_play {
halign: start;
label: _("Play");
margin-start: 6;
margin-end: 6;
margin-top: 6;

View File

@@ -3,7 +3,7 @@ using Adw 1;
template PreferencesWindow : Adw.PreferencesWindow {
search-enabled: false;
default-height: 500;
default-height: 550;
Adw.PreferencesPage page {
Adw.PreferencesGroup general_group {
@@ -16,6 +16,16 @@ template PreferencesWindow : Adw.PreferencesWindow {
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.ActionRow {
title: _("High Quality Images");
subtitle: _("Save game covers losslessly at the cost of storage");

View File

@@ -4,6 +4,21 @@
<key name="exit-after-launch" type="b">
<default>false</default>
</key>
<key name="cover-launches-game" type="b">
<default>false</default>
</key>
<key name="high-quality-images" type="b">
<default>false</default>
</key>
<key name="steam-location" type="s">
<default>"~/.steam/"</default>
</key>
<key name="steam-extra-dirs" type="as">
<default>[]</default>
</key>
<key name="heroic-location" type="s">
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
</key>
<key name="heroic-import-epic" type="b">
<default>true</default>
</key>
@@ -13,20 +28,8 @@
<key name="heroic-import-sideload" type="b">
<default>true</default>
</key>
<key name="steam-location" type="s">
<default>"~/.steam/"</default>
</key>
<key name="steam-extra-dirs" type="as">
<default>[]</default>
</key>
<key name="heroic-location" type="s">
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
</key>
<key name="bottles-location" type="s">
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
</key>
<key name="high-quality-images" type="b">
<default>false</default>
</key>
</schema>
<schema id="hu.kramo.Cartridge.State" path="/hu/kramo/Cartridges/State/">