windows: fix darkmode

This commit is contained in:
tobtoht 2024-05-03 18:59:35 +02:00
parent 478248f99c
commit 69977e38b2
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -82,12 +82,6 @@ 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]);