mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-14 09:10:25 +00:00
update OLED dark mode (iOS <16)
This commit is contained in:
parent
e88839e7c1
commit
33c5fc41ca
1 changed files with 6 additions and 1 deletions
|
|
@ -646,7 +646,12 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||
|
||||
// uYou settings
|
||||
%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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue