修正SpkUi初始化中的亮暗色更改判断逻辑错误

This commit is contained in:
RigoLigoRLC
2021-09-01 16:43:09 +08:00
parent 8ac76b668e
commit 764f6eee73
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -54,6 +54,7 @@ namespace SpkUi
StylesheetBase = ObtainStylesheet.readAll(); StylesheetBase = ObtainStylesheet.readAll();
ObtainStylesheet.close(); ObtainStylesheet.close();
CurrentStyle = SpkUiStyle::Invalid;
SetGlobalStyle(Light, false); SetGlobalStyle(Light, false);
// Initalize crash handler // Initalize crash handler
+1 -1
View File
@@ -16,7 +16,7 @@
namespace SpkUi namespace SpkUi
{ {
enum SpkUiStyle { Light, Dark }; enum SpkUiStyle { Invalid, Light, Dark };
enum SpkButtonStyle { Normal = 0, Recommend, Warn }; enum SpkButtonStyle { Normal = 0, Recommend, Warn };
class SpkPopup; class SpkPopup;