Update YTLite.x

This commit is contained in:
arichorn
2023-07-25 18:18:55 -05:00
committed by GitHub
parent bcd9e54137
commit afd9e6054b
+9 -2
View File
@@ -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