08a6e3bc5e
- added "borderless" and "virtual desktop" options to settings; added separate FSR option to gamescope settings - dxvk now uses wine64 to update prefix before applying patches - added setting of `-window-mode exclusive` args to the wine when using wine FSR - `WinePrefix::update` and so now use wine64 binary instead of wineboot - renamed `files.wine` to `files.wine64` in `wine.json` - `Config::try_get_wine_executable` function now return wine64 binary - added picture to the repo
127 lines
3 KiB
Text
127 lines
3 KiB
Text
using Gtk 4.0;
|
|
using Adw 1;
|
|
|
|
Adw.PreferencesWindow window {
|
|
title: "Gamescope";
|
|
|
|
modal: true;
|
|
hide-on-close: true;
|
|
|
|
Adw.PreferencesPage {
|
|
Adw.PreferencesGroup {
|
|
title: "Game resolution";
|
|
|
|
Adw.ActionRow {
|
|
title: "Width";
|
|
|
|
Gtk.Entry game_width {
|
|
placeholder-text: "0";
|
|
valign: center;
|
|
input-purpose: digits;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "Height";
|
|
|
|
Gtk.Entry game_height {
|
|
placeholder-text: "0";
|
|
valign: center;
|
|
input-purpose: digits;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup {
|
|
title: "Gamescope resolution";
|
|
|
|
Adw.ActionRow {
|
|
title: "Width";
|
|
|
|
Gtk.Entry gamescope_width {
|
|
placeholder-text: "0";
|
|
valign: center;
|
|
input-purpose: digits;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "Height";
|
|
|
|
Gtk.Entry gamescope_height {
|
|
placeholder-text: "0";
|
|
valign: center;
|
|
input-purpose: digits;
|
|
}
|
|
}
|
|
}
|
|
|
|
Adw.PreferencesGroup {
|
|
title: "Other settings";
|
|
|
|
Adw.ActionRow {
|
|
title: "Framerate limit";
|
|
|
|
Gtk.Entry framerate_limit {
|
|
placeholder-text: "0";
|
|
valign: center;
|
|
input-purpose: digits;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "Unfocused framerate limit";
|
|
|
|
Gtk.Entry framerate_unfocused_limit {
|
|
placeholder-text: "0";
|
|
valign: center;
|
|
input-purpose: digits;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "Integer scaling";
|
|
|
|
Gtk.Switch integer_scaling {
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "FSR";
|
|
|
|
Gtk.Switch fsr {
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "Nvidia Image Scaling";
|
|
|
|
Gtk.Switch nis {
|
|
valign: center;
|
|
}
|
|
}
|
|
|
|
Adw.ActionRow {
|
|
title: "Window type";
|
|
|
|
Gtk.Box {
|
|
orientation: horizontal;
|
|
|
|
Gtk.ToggleButton borderless {
|
|
label: "Borderless";
|
|
valign: center;
|
|
}
|
|
|
|
Gtk.ToggleButton fullscreen {
|
|
label: "Fullscreen";
|
|
valign: center;
|
|
}
|
|
|
|
styles ["linked"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|