Disable CustomContrastMode

Crashes as soon as you use it. My fault.
This commit is contained in:
arichorn 2023-09-11 18:33:49 -05:00 committed by GitHub
parent 9c52e27b9a
commit ef025bd3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
*/
}