From 800b84d16518bfc730b9a027732b75a47e2b66a8 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 e69c34922..44c2789b0 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 { -- 2.30.2