From 7fcc5f64c36e8c622083c597966b12f6560fdc40 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sun, 22 Jan 2023 23:19:23 +0100 Subject: [PATCH] windows: fix dark mode --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index a84e0e0..d3e2bcf 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]);