feat: reduce luminosity in dark mode (#988)

This commit is contained in:
My-Responsitories
2025-08-11 10:57:08 +08:00
committed by GitHub
parent 88c2ba8059
commit dc61d9007f
7 changed files with 108 additions and 30 deletions

View File

@@ -779,4 +779,12 @@ class Pref {
static bool get tempPlayerConf =>
_setting.get(SettingBoxKey.tempPlayerConf, defaultValue: false);
static Color? get reduceLuxColor {
final int? color = _setting.get(SettingBoxKey.reduceLuxColor);
if (color != null && color != 0xFFFFFFFF) {
return Color(color);
}
return null;
}
}