mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:58:45 -04:00
LowContrastMode v1.4.3
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user