From: tobtoht Date: Sun, 22 Jan 2023 22:19:23 +0000 (+0100) Subject: windows: fix dark mode X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=7fcc5f64c36e8c622083c597966b12f6560fdc40;p=gamesguru%2Ffeather.git windows: fix dark mode --- diff --git a/src/main.cpp b/src/main.cpp index a84e0e04..d3e2bcff 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -37,6 +37,12 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) { } #endif +// #TODO: Fix Windows dark mode handling Qt 6.5 beta1 +// darkmode=2 (default) causes some text to become unreadable +#if defined(Q_OS_WIN) + qputenv("QT_QPA_PLATFORM", "windows:darkmode=1"); +#endif + QStringList argv_; for(int i = 0; i != argc; i++){ argv_ << QString::fromStdString(argv[i]);