Skip to content

Commit

Permalink
Use fusion by default on Windows, enables dark mode support (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-gromeyer committed Sep 15, 2023
1 parent c4e6db0 commit d93e4d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ auto main(int argc, char *argv[]) -> int
QApplication::setApplicationVersion(QStringLiteral(APP_VERSION));
QApplication::setApplicationName(QStringLiteral("MarkdownEdit"));

#ifdef Q_OS_WIN
QApplication::setStyle(QStringLiteral("fusion"));
#endif

#ifdef Q_OS_WASM
if (settings::isDarkMode()) {
// Load the stylesheet
Expand Down

0 comments on commit d93e4d0

Please sign in to comment.