getThemeMode static method
Implementation
static ThemeMode getThemeMode() {
final String theme = SpUtil.getString(BaseConfig.theme).nullSafe;
ThemeMode themeMode;
switch (theme) {
case 'dark':
themeMode = ThemeMode.dark;
break;
case 'light':
themeMode = ThemeMode.light;
break;
default:
themeMode = ThemeMode.system;
break;
}
return themeMode;
}