From 323927c3ae91b1a617fe6f15f203aee91c0424ad Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Wed, 17 May 2023 22:44:38 +0800 Subject: [PATCH] Fix the _systemDark don't get system color while app first boot. --- framelesshelper | 2 +- src/FluTheme.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/framelesshelper b/framelesshelper index 675a1f7d..4c5ca2e1 160000 --- a/framelesshelper +++ b/framelesshelper @@ -1 +1 @@ -Subproject commit 675a1f7d6e07074b0d07ab07d48d806eacc93a83 +Subproject commit 4c5ca2e12c3de1ffe15b795bdafd5caf3656ab84 diff --git a/src/FluTheme.cpp b/src/FluTheme.cpp index 823fb2db..e59ec16e 100644 --- a/src/FluTheme.cpp +++ b/src/FluTheme.cpp @@ -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); }