From 2db62f17d6777361c4b9cf67a0f4dfcc02378732 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 22 Mar 2024 17:32:11 -0400 Subject: [PATCH] Override scale factor and mobile mode when in SteamOS Game Mode This should help and make the interface more touch-friendly. --- launcher/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp index f10368e..6600e18 100755 --- a/launcher/src/main.cpp +++ b/launcher/src/main.cpp @@ -26,6 +26,11 @@ int main(int argc, char *argv[]) { QtWebView::initialize(); + if (qEnvironmentVariable("SteamDeck") == QStringLiteral("1")) { + qputenv("QT_SCALE_FACTOR", "2"); + qputenv("QT_QUICK_CONTROLS_MOBILE", "1"); + } + QApplication app(argc, argv); KDSingleApplication singleApplication;