Skip to content

Commit

Permalink
update OLED dark mode (iOS <16)
Browse files Browse the repository at this point in the history
  • Loading branch information
level3tjg committed Aug 15, 2023
1 parent e88839e commit 33c5fc4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 33c5fc4

Please sign in to comment.