Update LowContrastMode.xm

This commit is contained in:
arichorn 2023-09-16 16:50:37 -05:00 committed by GitHub
parent 4ab1b0573f
commit 14487c8cb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,16 @@ UIColor *lcmHexColor;
%orig(currentImage);
}
%end
%hook WKCompositingView // YouTube Playables (v18.34.5+)
- (void)layoutSubviews {
%orig;
for (UILabel *label in self.subviews) {
if ([label isKindOfClass:[UILabel class]]) {
label.textColor = [UIColor whiteColor];
}
}
}
%end
%hook UIExtendedSRGColorSpace
- (void)setTextColor:(UIColor *)textColor {
textColor = [[UIColor whiteColor] colorWithAlphaComponent:0.9];