LowContrastMode v1.4.3

This commit is contained in:
arichornlover
2023-11-27 19:13:28 -06:00
committed by GitHub
parent 3a47f46a24
commit 134bebae10

View File

@@ -16,7 +16,7 @@ static BOOL customContrastMode() {
UIColor *lcmHexColor; UIColor *lcmHexColor;
%group gLowContrastMode // Low Contrast Mode v1.4.2 (Compatible with only YouTube v16.05.7-v17.38.10) %group gLowContrastMode // Low Contrast Mode v1.4.3 (Compatible with only YouTube v16.05.7-v17.38.10)
%hook UIColor %hook UIColor
+ (UIColor *)whiteColor { // Dark Theme Color + (UIColor *)whiteColor { // Dark Theme Color
return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00]; return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00];
@@ -122,9 +122,9 @@ UIColor *lcmHexColor;
%orig(currentImage); %orig(currentImage);
} }
%end %end
%hook UIExtendedSRGColorSpace %hook UIExtendedGrayColorSpace
- (void)setTextColor:(UIColor *)textColor { - (void)setTextColor:(UIColor *)textColor {
textColor = [[UIColor whiteColor] colorWithAlphaComponent:0.9]; textColor = [[UIColor whiteColor] colorWithAlphaComponent:1.0];
%orig(); %orig();
} }
%end %end
@@ -329,9 +329,9 @@ UIColor *lcmHexColor;
%orig(currentImage); %orig(currentImage);
} }
%end %end
%hook UIExtendedSRGColorSpace %hook UIExtendedGrayColorSpace
- (void)setTextColor:(UIColor *)textColor { - (void)setTextColor:(UIColor *)textColor {
textColor = [[UIColor whiteColor] colorWithAlphaComponent:0.9]; textColor = [[UIColor whiteColor] colorWithAlphaComponent:1.0];
%orig(); %orig();
} }
%end %end