Fix the _systemDark don't get system color while app first boot.

This commit is contained in:
Mentalflow
2023-05-17 22:44:38 +08:00
parent 8b531e4637
commit 323927c3ae
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#include "FluTheme.h"
#include "FluTheme.h"
#include "Def.h"
#include "FluColors.h"
@ -26,6 +26,7 @@ FluTheme::FluTheme(QObject *parent)
primaryColor(FluColors::getInstance()->Blue());
nativeText(false);
darkMode(Fluent_DarkMode::Fluent_DarkModeType::Light);
_systemDark = systemDark();
qApp->installEventFilter(this);
}