Update YTLite.x
This commit is contained in:
@@ -215,8 +215,15 @@
|
|||||||
%end
|
%end
|
||||||
|
|
||||||
// Remove Dark Background in Overlay
|
// Remove Dark Background in Overlay
|
||||||
%hook YTMainAppVideoPlayerOverlayView
|
%hook UIView
|
||||||
- (void)setBackgroundVisible:(BOOL)arg1 { kNoDarkBg ? %orig(NO) : %orig; }
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
|
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) {
|
||||||
|
if (kNoDarkBg) {
|
||||||
|
color = nil;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
%orig;
|
||||||
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// No Endscreen Cards
|
// No Endscreen Cards
|
||||||
|
|||||||
Reference in New Issue
Block a user