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 committed Nov 5, 2024
1 parent 8312ec7 commit c314538
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 c314538

Please sign in to comment.