testing hidding separators for darkmode
This commit is contained in:
parent
af8edbe982
commit
1e4826c3ac
1 changed files with 16 additions and 3 deletions
|
|
@ -186,12 +186,25 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) {
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTELMView
|
// Hide seperators
|
||||||
- (UIColor *)backgroundColor {
|
@interface YTCollectionSeparatorView (HiddenProperty)
|
||||||
return [UIColor blackColor];
|
@property (nonatomic, assign) BOOL hidden;
|
||||||
|
@end
|
||||||
|
|
||||||
|
%hook YTCollectionSeparatorView
|
||||||
|
%property (nonatomic, assign, setter=setHidden:) BOOL hidden;
|
||||||
|
|
||||||
|
- (void)setHidden:(BOOL)hidden {
|
||||||
|
%orig(hidden);
|
||||||
}
|
}
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTELMView
|
||||||
|
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||||
|
return pageStyle == 1 ? [UIColor blackColor] : %orig;
|
||||||
|
}
|
||||||
|
|
||||||
%hook YTHeaderViewController
|
%hook YTHeaderViewController
|
||||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||||
return pageStyle == 1 ? [UIColor blackColor] : %orig;
|
return pageStyle == 1 ? [UIColor blackColor] : %orig;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue