From 3e7c7970b07abbda9bb65ff763c3757426ff0820 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Wed, 13 Dec 2023 02:10:20 -0600 Subject: [PATCH] Update LowContrastMode --- Source/LowContrastMode.xm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/LowContrastMode.xm b/Source/LowContrastMode.xm index 65ce890..52d2c94 100644 --- a/Source/LowContrastMode.xm +++ b/Source/LowContrastMode.xm @@ -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];