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 1/3] 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 From 08784c4819754c26de25632ae95e5264851482b6 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 25 Jul 2023 18:35:01 -0500 Subject: [PATCH 2/3] Update YTLite.x --- YTLite.x | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/YTLite.x b/YTLite.x index 9c5112f..f6e44f7 100644 --- a/YTLite.x +++ b/YTLite.x @@ -215,6 +215,10 @@ %end // Remove Dark Background in Overlay +%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")]) { @@ -225,6 +229,7 @@ %orig; } %end +*/ // No Endscreen Cards %hook YTCreatorEndscreenView 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 3/3] 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