From: Claudio Cambra Date: Tue, 5 Nov 2024 08:02:54 +0000 (+0900) Subject: If <= Windows 10, use the reserve dark palette for dark mode X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~5^2~40^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=800b84d16518bfc730b9a027732b75a47e2b66a8;p=nextcloud-desktop.git If <= Windows 10, use the reserve dark palette for dark mode Signed-off-by: Claudio Cambra --- 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 {