From 9695aa090ee7891679aa793400c1f23ee3abc75f Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 25 Jul 2023 02:27:16 -0500 Subject: [PATCH] Fixed `Hide Dark Overlay Background` Option --- uYouPlus.xm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index a328c14..660be3a 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -671,13 +671,21 @@ static void replaceTab(YTIGuideResponse *response) { // %end %end -// Hide Overlay Dark Background +// Hide Dark Overlay Background %group gHideOverlayDarkBackground %hook YTMainAppVideoPlayerOverlayView -- (void)setBackgroundVisible:(BOOL)arg1 { +- (void)setBackgroundVisible:(BOOL)arg1 { // Deprecated Method %orig(NO); } %end +%hook UIView +- (void)setBackgroundColor:(UIColor *)color { + if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) { + color = nil; + } + %orig; +} +%end %end // Replace Next & Previous button with Fast forward & Rewind button