From 4f451d044a8a4b0854eee9cd7cc33b94ba0af50e Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 18 Feb 2026 14:14:58 -0500 Subject: [PATCH] cmake-gui: Fix first-configure dialog appearance in Dark Mode on Windows Since commit 1fef953655 (Utilities/Release: Update to Qt 6.10.1 on Windows builds, 2025-12-08) our official binaries on Windows now honor dark mode. However, this dialog became unreadable, seemingly due to QTBUG-123853. Setting the wizard style to itself seems to work around the problem. Fixes: #27587 Qt-Issue: https://qt-project.atlassian.net/browse/QTBUG-123853 Suggested-by: Matthew Woehlke --- Source/QtDialog/FirstConfigure.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/QtDialog/FirstConfigure.cxx b/Source/QtDialog/FirstConfigure.cxx index fec62c6ce3..4a3133efb4 100644 --- a/Source/QtDialog/FirstConfigure.cxx +++ b/Source/QtDialog/FirstConfigure.cxx @@ -477,6 +477,10 @@ void ToolchainCompilerSetup::setToolchainFile(QString const& t) FirstConfigure::FirstConfigure() { +#ifdef _WIN32 + // FIXME(QTBUG-123853): Fix window style init for dark mode. + this->setWizardStyle(this->wizardStyle()); +#endif char const* env_generator = std::getenv("CMAKE_GENERATOR"); char const* env_generator_platform = nullptr; char const* env_generator_toolset = nullptr;