Update Themes.xm

This commit is contained in:
arichorn 2023-08-15 16:46:30 -05:00 committed by GitHub
parent 2fd65f7dfa
commit ec73d888f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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];
}