Fix Header (Themes)
This commit is contained in:
parent
4f1f793d5d
commit
9f543218e3
1 changed files with 1 additions and 13 deletions
|
|
@ -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")]) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue