Skip to content

Commit a56beb3

Browse files
authored
Support dark mode in Windows (flameshot-org#3984)
1 parent 669dfaa commit a56beb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ QTranslator translator, qtTranslator;
8383
void configureApp(bool gui)
8484
{
8585
if (gui) {
86+
#if defined(Q_OS_WIN) && QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
87+
QApplication::setStyle("Fusion"); // Supports dark scheme on Win 10/11
88+
#else
8689
QApplication::setStyle(new StyleOverride);
90+
#endif
8791
}
8892

8993
// Configure translations

0 commit comments

Comments
 (0)