1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-06-07 22:47:46 +00:00

Override scale factor and mobile mode when in SteamOS Game Mode

This should help and make the interface more touch-friendly.

(cherry picked from commit 2db62f17d6)
This commit is contained in:
Joshua Goins 2024-03-22 17:32:11 -04:00
parent 305ee34ce8
commit 7bac60de17

View file

@ -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;