mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:48:45 -04:00
LowContrastMode v1.4.3
This commit is contained in:
@@ -16,7 +16,7 @@ static BOOL customContrastMode() {
|
||||
|
||||
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
|
||||
+ (UIColor *)whiteColor { // Dark Theme Color
|
||||
return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00];
|
||||
@@ -122,9 +122,9 @@ UIColor *lcmHexColor;
|
||||
%orig(currentImage);
|
||||
}
|
||||
%end
|
||||
%hook UIExtendedSRGColorSpace
|
||||
%hook UIExtendedGrayColorSpace
|
||||
- (void)setTextColor:(UIColor *)textColor {
|
||||
textColor = [[UIColor whiteColor] colorWithAlphaComponent:0.9];
|
||||
textColor = [[UIColor whiteColor] colorWithAlphaComponent:1.0];
|
||||
%orig();
|
||||
}
|
||||
%end
|
||||
@@ -329,9 +329,9 @@ UIColor *lcmHexColor;
|
||||
%orig(currentImage);
|
||||
}
|
||||
%end
|
||||
%hook UIExtendedSRGColorSpace
|
||||
%hook UIExtendedGrayColorSpace
|
||||
- (void)setTextColor:(UIColor *)textColor {
|
||||
textColor = [[UIColor whiteColor] colorWithAlphaComponent:0.9];
|
||||
textColor = [[UIColor whiteColor] colorWithAlphaComponent:1.0];
|
||||
%orig();
|
||||
}
|
||||
%end
|
||||
|
Reference in New Issue
Block a user