From ec73d888f335b4be731634f6d1106d6a2fff14b7 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:46:30 -0500 Subject: [PATCH] Update Themes.xm --- Source/Themes.xm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Themes.xm b/Source/Themes.xm index 381470c..708cdd7 100644 --- a/Source/Themes.xm +++ b/Source/Themes.xm @@ -613,7 +613,12 @@ UIColor* raisedColor = [UIColor blackColor]; %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 = [UIColor blackColor]; +} +- (void)_layoutSystemBackgroundView:(BOOL)arg1 { %orig; ((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:@"_colorView"]).backgroundColor = [UIColor blackColor]; }