1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-22 12:47:44 +00:00

Override scale factor and mobile mode when in SteamOS Game Mode

This should help and make the interface more touch-friendly.
This commit is contained in:
Joshua Goins 2024-03-22 17:32:11 -04:00
parent 5d72740f0c
commit 2db62f17d6

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;