Fix Header (Themes)

This commit is contained in:
arichornlover
2023-12-25 17:37:04 -06:00
committed by GitHub
parent 4f1f793d5d
commit 9f543218e3

View File

@@ -1,4 +1,4 @@
#import "../Header.h"
#import "../YTLitePlus.h"
static BOOL IsEnabled(NSString *key) {
return [[NSUserDefaults standardUserDefaults] boolForKey:key];
@@ -71,12 +71,6 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
} else { return %orig; }
}
%end
%hook ELMView
- (void)didMoveToWindow {
%orig;
self.subviews[0].backgroundColor = [UIColor clearColor];
}
%end
%hook YTAsyncCollectionView
- (void)setBackgroundColor:(UIColor *)color {
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
@@ -464,12 +458,6 @@ UIColor* raisedColor = [UIColor blackColor];
} else { return %orig; }
}
%end
%hook ELMView
- (void)didMoveToWindow {
%orig;
self.subviews[0].backgroundColor = [UIColor clearColor];
}
%end
%hook YTAsyncCollectionView
- (void)setBackgroundColor:(UIColor *)color {
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {