From 33c5fc41ca4fddce18c0f989f77a272b12047e30 Mon Sep 17 00:00:00 2001 From: level3tjg Date: Tue, 15 Aug 2023 16:20:29 -0400 Subject: [PATCH] update OLED dark mode (iOS <16) --- uYouPlus.xm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 75bfe19b26..6f97767dbb 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -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]; }