From 2e76542d97037c784fdfeca875fa270027924e1c Mon Sep 17 00:00:00 2001 From: Doug Massay Date: Sun, 26 May 2024 12:10:07 -0400 Subject: [PATCH] Fix Windows build after last commit --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1ebbbdd139..22f45db212 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -670,10 +670,10 @@ int main(int argc, char *argv[]) #ifdef Q_OS_WIN32 // Windows likes these dockwidget icons for light/dark too, - // but only when using Qt's inherent fusion dark mode. - if (settings.uiUseCustomSigilDarkTheme()) { + // but only when using Qt's inherent fusion light/dark modes. + if (!Utility::WindowsShouldUseDarkMode() || !settings.uiUseCustomSigilDarkTheme()) { app.setStyleSheet(app.styleSheet().append(LINWIN_DOCK_TITLEBAR_FIX)); - accumulatedQss.append(focus_qss); + accumulatedQss.append(LINWIN_DOCK_TITLEBAR_FIX); } #endif // Q_OS_WIN32 // allow user to highlight the focus widget