projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2d91bb
)
If <= Windows 10, use the reserve dark palette for dark mode
author
Claudio Cambra
<claudio.cambra@nextcloud.com>
Tue, 5 Nov 2024 08:02:54 +0000
(17:02 +0900)
committer
Matthieu Gallien
<matthieu.gallien@nextcloud.com>
Tue, 19 Nov 2024 13:09:05 +0000
(14:09 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/libsync/theme.cpp
patch
|
blob
|
history
diff --git
a/src/libsync/theme.cpp
b/src/libsync/theme.cpp
index e69c34922e14b56a80914772161073390049d8fb..44c2789b09bebef48a9e124ad4a1c1386aea0132 100644
(file)
--- 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 {