Update Themes.xm

From qnblackcat/uYouPlus
This commit is contained in:
arichorn 2023-08-15 16:44:53 -05:00 committed by GitHub
parent ef36051ebe
commit 2fd65f7dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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