mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Fix Live Chat not showing when using Themes
This commit is contained in:
parent
0cd6daf677
commit
47853db87d
1 changed files with 13 additions and 47 deletions
|
|
@ -75,16 +75,10 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
|||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTFeedHeaderView")]) {
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatTextCell")]) {
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatViewerEngagementCell")]) {
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTCommentsHeaderView")]) {
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatView")]) {
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatTextCell")]) {
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatTickerViewController")]) {
|
||||
|
|
@ -349,13 +343,6 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
|||
%orig(customColor);
|
||||
}
|
||||
%end
|
||||
%hook YCHLiveChatBannerCell
|
||||
- (void)layoutSubviews {
|
||||
%orig();
|
||||
MSHookIvar<UIImageView *>(self, "_bannerContainerImageView").hidden = YES;
|
||||
MSHookIvar<UIView *>(self, "_bannerContainerView").backgroundColor = customColor;
|
||||
}
|
||||
%end
|
||||
%hook YTDialogContainerScrollView
|
||||
- (void)setBackgroundColor:(UIColor *)color {
|
||||
%orig(customColor);
|
||||
|
|
@ -381,10 +368,6 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
|||
%orig(customColor);
|
||||
}
|
||||
%end
|
||||
%hook YTSearchSuggestionCollectionViewCell
|
||||
- (void)updateColors {
|
||||
}
|
||||
%end
|
||||
%hook YTShareMainView
|
||||
- (void)layoutSubviews {
|
||||
%orig();
|
||||
|
|
@ -480,43 +463,37 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||
color = [UIColor blackColor];
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTAsyncCollectionView")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTLinkCell")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTMessageCell")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTSearchView")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTDrawerAvatarCell")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTFeedHeaderView")]) {
|
||||
color = [UIColor blackColor];
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatTextCell")]) {
|
||||
color = [UIColor blackColor];
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatViewerEngagementCell")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTCommentsHeaderView")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatView")]) {
|
||||
color = [UIColor blackColor];
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatTextCell")]) {
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YCHLiveChatTickerViewController")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTInnerTubeCollectionViewController")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTEditSheetControllerHeader")]) {
|
||||
color = [UIColor blackColor];
|
||||
color = customColor;
|
||||
}
|
||||
%orig;
|
||||
}
|
||||
|
|
@ -771,13 +748,6 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||
%orig([UIColor blackColor]);
|
||||
}
|
||||
%end
|
||||
%hook YCHLiveChatBannerCell
|
||||
- (void)layoutSubviews {
|
||||
%orig();
|
||||
MSHookIvar<UIImageView *>(self, "_bannerContainerImageView").hidden = YES;
|
||||
MSHookIvar<UIView *>(self, "_bannerContainerView").backgroundColor = [UIColor blackColor];
|
||||
}
|
||||
%end
|
||||
%hook YTDialogContainerScrollView
|
||||
- (void)setBackgroundColor:(UIColor *)color {
|
||||
%orig([UIColor blackColor]);
|
||||
|
|
@ -803,10 +773,6 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||
%orig([UIColor blackColor]);
|
||||
}
|
||||
%end
|
||||
%hook YTSearchSuggestionCollectionViewCell
|
||||
- (void)updateColors {
|
||||
}
|
||||
%end
|
||||
%hook YTShareMainView
|
||||
- (void)layoutSubviews {
|
||||
%orig();
|
||||
|
|
|
|||
Loading…
Reference in a new issue