From cb9f69c66437f0ee411a8f0ee2598ff6be346c3d Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Wed, 13 Mar 2024 18:30:58 -0500 Subject: [PATCH] Update uYouPlusThemes.xm --- Sources/uYouPlusThemes.xm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 {