mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Update all of LowContrastMode’s Keys
Updated all keys to use IS_ENABLED instead of IsEnabled
This commit is contained in:
parent
76a1d28f25
commit
3cb2df1027
1 changed files with 2 additions and 5 deletions
|
|
@ -1,18 +1,15 @@
|
|||
#import "../uYouPlus.h"
|
||||
|
||||
//
|
||||
static BOOL IsEnabled(NSString *key) {
|
||||
return [[NSUserDefaults standardUserDefaults] boolForKey:key];
|
||||
}
|
||||
static int contrastMode() {
|
||||
return [[NSUserDefaults standardUserDefaults] integerForKey:@"lcm"];
|
||||
}
|
||||
static BOOL lowContrastMode() {
|
||||
return IsEnabled(@"lowContrastMode_enabled") && contrastMode() == 0;
|
||||
return IS_ENABLED(@"lowContrastMode_enabled") && contrastMode() == 0;
|
||||
}
|
||||
/*
|
||||
static BOOL customContrastMode() {
|
||||
return IsEnabled(@"lowContrastMode_enabled") && contrastMode() == 1;
|
||||
return IS_ENABLED(@"lowContrastMode_enabled") && contrastMode() == 1;
|
||||
}
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue