mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-22 03:31:09 +08:00
feat: reduce luminosity in dark mode (#988)
This commit is contained in:
committed by
GitHub
parent
88c2ba8059
commit
dc61d9007f
@@ -202,7 +202,8 @@ class SettingBoxKey {
|
||||
hiddenSettingUnlocked = 'hiddenSettingUnlocked',
|
||||
enableGradientBg = 'enableGradientBg',
|
||||
navBarSort = 'navBarSort',
|
||||
tempPlayerConf = 'tempPlayerConf';
|
||||
tempPlayerConf = 'tempPlayerConf',
|
||||
reduceLuxColor = 'reduceLuxColor';
|
||||
}
|
||||
|
||||
class LocalCacheKey {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user