mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Disable CustomContrastMode
Crashes as soon as you use it. My fault.
This commit is contained in:
parent
9c52e27b9a
commit
ef025bd3ac
1 changed files with 6 additions and 0 deletions
|
|
@ -10,9 +10,11 @@ static int contrastMode() {
|
|||
static BOOL lowContrastMode() {
|
||||
return IsEnabled(@"lowContrastMode_enabled") && contrastMode() == 0;
|
||||
}
|
||||
/*
|
||||
static BOOL customContrastMode() {
|
||||
return IsEnabled(@"lowContrastMode_enabled") && contrastMode() == 1;
|
||||
}
|
||||
*/
|
||||
|
||||
UIColor *lcmHexColor;
|
||||
|
||||
|
|
@ -223,6 +225,7 @@ UIColor *lcmHexColor;
|
|||
%end
|
||||
%end
|
||||
|
||||
/*
|
||||
%group gCustomContrastMode // Custom Contrast Mode (Hex Color)
|
||||
%hook UIColor
|
||||
+ (UIColor *)whiteColor {
|
||||
|
|
@ -429,6 +432,7 @@ UIColor *lcmHexColor;
|
|||
}
|
||||
%end
|
||||
%end
|
||||
*/
|
||||
|
||||
# pragma mark - ctor
|
||||
%ctor {
|
||||
|
|
@ -436,7 +440,9 @@ UIColor *lcmHexColor;
|
|||
if (lowContrastMode()) {
|
||||
%init(gLowContrastMode);
|
||||
}
|
||||
/*
|
||||
if (customContrastMode()) {
|
||||
%init(gCustomContrastMode);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue