Skip to content

Commit

Permalink
If <= Windows 10, use the reserve dark palette for dark mode
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and mgallien committed Nov 19, 2024
1 parent 615f632 commit 1b85930
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libsync/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1b85930

Please sign in to comment.