From 2fd65f7dfa48d0ce33f5c446c4834695e55b8ffa Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:44:53 -0500 Subject: [PATCH] Update Themes.xm From qnblackcat/uYouPlus --- Source/Themes.xm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Themes.xm b/Source/Themes.xm index 89a8aaf..381470c 100644 --- a/Source/Themes.xm +++ b/Source/Themes.xm @@ -170,7 +170,12 @@ UIColor *originalColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alph %end %hook UITableViewCell -- (void)_layoutSystemBackgroundView:(BOOL)animated { +- (void)_layoutSystemBackgroundView { + %orig; + NSString *backgroundViewKey = class_getInstanceVariable(self.class, "_colorView") ? @"_colorView" : @"_backgroundView"; + ((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:backgroundViewKey]).backgroundColor = originalColor; +} +- (void)_layoutSystemBackgroundView:(BOOL)arg1 { %orig; ((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:@"_colorView"]).backgroundColor = originalColor; }