Skip to content

Commit

Permalink
force the use of Fusion style under windows, supporting dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Jul 14, 2024
1 parent 2357149 commit 999905a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kvirc/kernel/KviApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ KviApplication::KviApplication(int & argc, char ** argv)
setStyle(QStyleFactory::create("Fusion"));
setPalette(style()->standardPalette());
}
#elif defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW)
// force the use of Fusion style under windows, supporting dark mode
setStyle(QStyleFactory::create("Fusion"));
setPalette(style()->standardPalette());
#endif

// Restore Qt5-like rounding to fix HiDPI support on QWebEngine
Expand Down

0 comments on commit 999905a

Please sign in to comment.