From 2b5d9c3bec7af9809041f7038ea4387a680816a9 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Mon, 31 Jul 2023 07:54:00 -0500 Subject: [PATCH] Fixed `Hide Dark Overlay Background` Again? this was fixed by Dayanch96 from here https://github.com/dayanch96/YTLite --- uYouPlus.xm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 49bf91d..de5c509 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -675,12 +675,9 @@ static void replaceTab(YTIGuideResponse *response) { // Hide Dark Overlay Background %group gHideOverlayDarkBackground -%hook UIView -- (void)setBackgroundColor:(UIColor *)color { - if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) { - color = nil; - } - %orig; +%hook YTMainAppVideoPlayerOverlayView +- (void)setBackgroundVisible:(BOOL)arg1 isGradientBackground:(BOOL)arg2 { + %orig(NO, arg2); } %end %end