added 2 classes
This commit is contained in:
parent
261574c146
commit
47f816ca5f
1 changed files with 24 additions and 0 deletions
|
|
@ -109,6 +109,18 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook _ASDisplayView
|
||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
return pageStyle == 1 ? [UIColor customColor] : %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook UIDeviceWhiteColor
|
||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
return pageStyle == 1 ? [UIColor customColor] : %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTHeaderViewController
|
||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
return pageStyle == 1 ? customColor : %orig;
|
||||
|
|
@ -400,6 +412,18 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||
}
|
||||
%end
|
||||
|
||||
%hook _ASDisplayView
|
||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
return pageStyle == 1 ? [UIColor blackColor] : %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook UIDeviceWhiteColor
|
||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
return pageStyle == 1 ? [UIColor blackColor] : %orig;
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTChannelMobileHeaderViewController
|
||||
- (UIColor *)backgroundColor:(NSInteger)pageStyle {
|
||||
return pageStyle == 1 ? [UIColor blackColor] : %orig;
|
||||
|
|
|
|||
Loading…
Reference in a new issue