mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-22 02:38:45 -04:00
Fix Header (Themes)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#import "../Header.h"
|
#import "../YTLitePlus.h"
|
||||||
|
|
||||||
static BOOL IsEnabled(NSString *key) {
|
static BOOL IsEnabled(NSString *key) {
|
||||||
return [[NSUserDefaults standardUserDefaults] boolForKey: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; }
|
} else { return %orig; }
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook ELMView
|
|
||||||
- (void)didMoveToWindow {
|
|
||||||
%orig;
|
|
||||||
self.subviews[0].backgroundColor = [UIColor clearColor];
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%hook YTAsyncCollectionView
|
%hook YTAsyncCollectionView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
|
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
|
||||||
@@ -464,12 +458,6 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||||||
} else { return %orig; }
|
} else { return %orig; }
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook ELMView
|
|
||||||
- (void)didMoveToWindow {
|
|
||||||
%orig;
|
|
||||||
self.subviews[0].backgroundColor = [UIColor clearColor];
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%hook YTAsyncCollectionView
|
%hook YTAsyncCollectionView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
|
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
|
||||||
|
Reference in New Issue
Block a user