2022-08-03 22:38:01 +03:00
|
|
|
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";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
Adw.EntryRow game_width {
|
2022-08-03 22:38:01 +03:00
|
|
|
title: "Width";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
input-purpose: digits;
|
2022-08-03 22:38:01 +03:00
|
|
|
}
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
Adw.EntryRow game_height {
|
2022-08-03 22:38:01 +03:00
|
|
|
title: "Height";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
input-purpose: digits;
|
2022-08-03 22:38:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Adw.PreferencesGroup {
|
|
|
|
title: "Gamescope resolution";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
Adw.EntryRow gamescope_width {
|
2022-08-03 22:38:01 +03:00
|
|
|
title: "Width";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
input-purpose: digits;
|
2022-08-03 22:38:01 +03:00
|
|
|
}
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
Adw.EntryRow gamescope_height {
|
2022-08-03 22:38:01 +03:00
|
|
|
title: "Height";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
input-purpose: digits;
|
2022-08-03 22:38:01 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Adw.PreferencesGroup {
|
|
|
|
title: "Other settings";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
Adw.EntryRow framerate_limit {
|
2022-08-03 22:38:01 +03:00
|
|
|
title: "Framerate limit";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
input-purpose: digits;
|
2022-08-03 22:38:01 +03:00
|
|
|
}
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
Adw.EntryRow framerate_unfocused_limit {
|
2022-08-03 22:38:01 +03:00
|
|
|
title: "Unfocused framerate limit";
|
|
|
|
|
2022-09-24 17:52:31 +03:00
|
|
|
input-purpose: digits;
|
2022-08-03 22:38:01 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
Adw.ActionRow {
|
2022-08-03 23:37:36 +03:00
|
|
|
title: "Integer scaling";
|
2022-08-03 22:38:01 +03:00
|
|
|
|
|
|
|
Gtk.Switch integer_scaling {
|
|
|
|
valign: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-05 23:33:47 +03:00
|
|
|
Adw.ActionRow {
|
|
|
|
title: "FSR";
|
|
|
|
|
|
|
|
Gtk.Switch fsr {
|
|
|
|
valign: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-03 23:37:36 +03:00
|
|
|
Adw.ActionRow {
|
|
|
|
title: "Nvidia Image Scaling";
|
|
|
|
|
2022-08-05 23:33:47 +03:00
|
|
|
Gtk.Switch nis {
|
2022-08-03 23:37:36 +03:00
|
|
|
valign: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-03 22:38:01 +03:00
|
|
|
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"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|