From afd9e6054bb541e0317dd427c3e11b5e3f326efe Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 25 Jul 2023 18:18:55 -0500 Subject: [PATCH] Update YTLite.x --- YTLite.x | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/YTLite.x b/YTLite.x index b45708f..9c5112f 100644 --- a/YTLite.x +++ b/YTLite.x @@ -215,8 +215,15 @@ %end // Remove Dark Background in Overlay -%hook YTMainAppVideoPlayerOverlayView -- (void)setBackgroundVisible:(BOOL)arg1 { kNoDarkBg ? %orig(NO) : %orig; } +%hook UIView +- (void)setBackgroundColor:(UIColor *)color { + if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) { + if (kNoDarkBg) { + color = nil; + } + } + %orig; +} %end // No Endscreen Cards