update OLED dark mode (iOS <16)
This commit is contained in:
+6
-1
@@ -646,7 +646,12 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
|
|
||||||
// uYou settings
|
// uYou settings
|
||||||
%hook UITableViewCell
|
%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;
|
%orig;
|
||||||
((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:@"_colorView"]).backgroundColor = [UIColor blackColor];
|
((UIView *)[[self valueForKey:@"_systemBackgroundView"] valueForKey:@"_colorView"]).backgroundColor = [UIColor blackColor];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user