Update LowContrastMode

This commit is contained in:
arichornlover 2023-12-13 02:10:20 -06:00 committed by GitHub
parent bb6e1b54ab
commit 3e7c7970b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,6 +171,14 @@ UIColor *lcmHexColor;
return [UIColor whiteColor];
}
%end
%hook YCHLiveChatLabel
- (NSAttributedString *)attributedText {
NSAttributedString *originalAttributedString = %orig;
NSMutableAttributedString *modifiedAttributedString = [originalAttributedString mutableCopy];
[modifiedAttributedString addAttribute:NSForegroundColorAttributeName value:[UIColor whiteColor] range:NSMakeRange(0, modifiedAttributedString.length)];
return modifiedAttributedString;
}
%end
%hook YTQTMButton
- (void)setImage:(UIImage *)image {
UIImage *currentImage = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];