wip: apply scheme logic.

This commit is contained in:
2021-12-09 18:47:35 +08:00
parent 9a21766291
commit 1f542cb585
3 changed files with 52 additions and 8 deletions
+4
View File
@@ -13,8 +13,12 @@ class Configs {
@ProviderModelProp()
BrightnessMode? brightnessMode;
@ProviderModelProp()
String? appliedSchemeId;
Configs() {
this.brightnessMode =
BrightnessMode.values[H().sp.getInt(SPKeys.brightnessMode)?.clamp(0, BrightnessMode.values.length - 1) ?? 0];
this.appliedSchemeId = H().sp.getString(SPKeys.appliedSchemeId);
}
}