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:
parent
5d72740f0c
commit
2db62f17d6
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue