From c314538ca46292375b33e77f0c8d077df399fe29 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 5 Nov 2024 17:02:54 +0900 Subject: [PATCH] If <= Windows 10, use the reserve dark palette for dark mode Signed-off-by: Claudio Cambra --- src/libsync/theme.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libsync/theme.cpp b/src/libsync/theme.cpp index 5db2bb949b4b..caf137667171 100644 --- a/src/libsync/theme.cpp +++ b/src/libsync/theme.cpp @@ -986,13 +986,13 @@ void Theme::connectToPaletteSignal() QVariantMap Theme::systemPalette() { connectToPaletteSignal(); -#if defined(Q_OS_WIN) auto systemPalette = QGuiApplication::palette(); - if(darkMode()) { +#if defined(Q_OS_WIN) + if (darkMode() && !IsWindows11OrGreater()) { systemPalette = reserveDarkPalette; } #else - const auto systemPalette = QGuiApplication::palette(); + #endif return QVariantMap {