From 6876c2e572f642a7977d07aaf56ec0477e0867c3 Mon Sep 17 00:00:00 2001 From: Dan <38832025+dayanch96@users.noreply.github.com> Date: Wed, 26 Jul 2023 02:37:17 +0300 Subject: [PATCH] Fix Remove Dark Background in Overlay #22 --- YTLite.x | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/YTLite.x b/YTLite.x index f6e44f7..d1203a2 100644 --- a/YTLite.x +++ b/YTLite.x @@ -218,18 +218,6 @@ %hook YTMainAppVideoPlayerOverlayView - (void)setBackgroundVisible:(BOOL)arg1 isGradientBackground:(BOOL)arg2 { kNoDarkBg ? %orig(NO, arg2) : %orig; } %end -/* -%hook UIView -- (void)setBackgroundColor:(UIColor *)color { - if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) { - if (kNoDarkBg) { - color = nil; - } - } - %orig; -} -%end -*/ // No Endscreen Cards %hook YTCreatorEndscreenView