ThemeVM constructor

ThemeVM()

Implementation

ThemeVM() {
  /// 明暗模式
  var index = StorageManager.getItem(kThemeBrightnessIndex) ?? defaultIndex;
  _brightness = Brightness.values[index];
  switchTheme(brightness: _brightness, color: CConfig.pColor, isInit: true);
}