diff --git a/Sources/uYouPlusThemes.xm b/Sources/uYouPlusThemes.xm index a4ec825..8ccf202 100644 --- a/Sources/uYouPlusThemes.xm +++ b/Sources/uYouPlusThemes.xm @@ -289,6 +289,15 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha: } %end +%hook UIApplication +- (void)applicationDidFinishLaunching:(UIApplication *)application { + if (@available(iOS 14.0, *)) { + self.window.backgroundColor = [UIColor blackColor]; + } + %orig; +} +%end + // Others %hook _ASDisplayView - (void)layoutSubviews { @@ -573,6 +582,15 @@ UIColor *customHexColor; } %end +%hook UIApplication +- (void)applicationDidFinishLaunching:(UIApplication *)application { + if (@available(iOS 14.0, *)) { + self.window.backgroundColor = [UIColor blackColor]; + } + %orig; +} +%end + // Others %hook _ASDisplayView - (void)layoutSubviews {