Fixed Hide Dark Overlay Background Option

This commit is contained in:
arichorn 2023-07-25 02:27:16 -05:00 committed by GitHub
parent 0c20ac5305
commit 9695aa090e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -671,13 +671,21 @@ static void replaceTab(YTIGuideResponse *response) {
// %end
%end
// Hide Overlay Dark Background
// Hide Dark Overlay Background
%group gHideOverlayDarkBackground
%hook YTMainAppVideoPlayerOverlayView
- (void)setBackgroundVisible:(BOOL)arg1 {
- (void)setBackgroundVisible:(BOOL)arg1 { // Deprecated Method
%orig(NO);
}
%end
%hook UIView
- (void)setBackgroundColor:(UIColor *)color {
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) {
color = nil;
}
%orig;
}
%end
%end
// Replace Next & Previous button with Fast forward & Rewind button