Fixed Hide Dark Overlay Background Again?

this was fixed by Dayanch96 from here https://github.com/dayanch96/YTLite
This commit is contained in:
arichorn 2023-07-31 07:54:00 -05:00 committed by GitHub
parent 592675ff4e
commit 2b5d9c3bec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -675,12 +675,9 @@ static void replaceTab(YTIGuideResponse *response) {
// Hide Dark Overlay Background
%group gHideOverlayDarkBackground
%hook UIView
- (void)setBackgroundColor:(UIColor *)color {
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMainAppVideoPlayerOverlayView")]) {
color = nil;
}
%orig;
%hook YTMainAppVideoPlayerOverlayView
- (void)setBackgroundVisible:(BOOL)arg1 isGradientBackground:(BOOL)arg2 {
%orig(NO, arg2);
}
%end
%end