Skip to content

Commit

Permalink
Fix Windows build after last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmassay committed May 26, 2024
1 parent 0052a55 commit 2e76542
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e76542

Please sign in to comment.