mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 07:41:59 +00:00
removed some dark theme elements
This commit is contained in:
parent
b1fcf429f6
commit
0f9aabf2a5
1 changed files with 2 additions and 44 deletions
|
|
@ -57,12 +57,6 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%orig(color);
|
%orig(color);
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTEngagementPanelView")]) {
|
|
||||||
if (isDarkMode()) {
|
|
||||||
color = customColor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%orig(color);
|
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTPlaylistPanelProminentThumbnailVideoCell")]) {
|
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTPlaylistPanelProminentThumbnailVideoCell")]) {
|
||||||
if (isDarkMode()) {
|
if (isDarkMode()) {
|
||||||
color = customColor;
|
color = customColor;
|
||||||
|
|
@ -168,21 +162,11 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook YTAsyncCollectionView
|
%hook YTAsyncCollectionView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
|
|
||||||
color = [UIColor clearColor];
|
|
||||||
} else if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTFullscreenMetadataHighlightsCollectionViewController")]) {
|
|
||||||
color = [UIColor clearColor];
|
|
||||||
} else {
|
|
||||||
color = customColor;
|
|
||||||
}
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
- (UIColor *)darkBackgroundColor {
|
- (UIColor *)darkBackgroundColor {
|
||||||
return customColor;
|
return customColor;
|
||||||
}
|
}
|
||||||
- (void)setDarkBackgroundColor:(UIColor *)color {
|
- (void)setDarkBackgroundColor:(UIColor *)color {
|
||||||
%orig(customColor);
|
return isDarkMode() ? %orig(customColor) : %orig;
|
||||||
}
|
}
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig();
|
%orig();
|
||||||
|
|
@ -276,11 +260,6 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
||||||
return isDarkMode() ? %orig(customColor) : %orig;
|
return isDarkMode() ? %orig(customColor) : %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook YTVideoView
|
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
|
||||||
return isDarkMode() ? %orig(customColor) : %orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%hook YTSearchBoxView
|
%hook YTSearchBoxView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
return isDarkMode() ? %orig(customColor) : %orig;
|
return isDarkMode() ? %orig(customColor) : %orig;
|
||||||
|
|
@ -514,12 +493,6 @@ UIColor* raisedColor = [UIColor blackColor];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
%orig(color);
|
%orig(color);
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTEngagementPanelView")]) {
|
|
||||||
if (isDarkMode()) {
|
|
||||||
color = [UIColor blackColor];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%orig(color);
|
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTPlaylistPanelProminentThumbnailVideoCell")]) {
|
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTPlaylistPanelProminentThumbnailVideoCell")]) {
|
||||||
if (isDarkMode()) {
|
if (isDarkMode()) {
|
||||||
color = [UIColor blackColor];
|
color = [UIColor blackColor];
|
||||||
|
|
@ -625,21 +598,11 @@ UIColor* raisedColor = [UIColor blackColor];
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook YTAsyncCollectionView
|
%hook YTAsyncCollectionView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
|
||||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTRelatedVideosCollectionViewController")]) {
|
|
||||||
color = [UIColor clearColor];
|
|
||||||
} else if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTFullscreenMetadataHighlightsCollectionViewController")]) {
|
|
||||||
color = [UIColor clearColor];
|
|
||||||
} else {
|
|
||||||
color = [UIColor blackColor];
|
|
||||||
}
|
|
||||||
%orig;
|
|
||||||
}
|
|
||||||
- (UIColor *)darkBackgroundColor {
|
- (UIColor *)darkBackgroundColor {
|
||||||
return [UIColor blackColor];
|
return [UIColor blackColor];
|
||||||
}
|
}
|
||||||
- (void)setDarkBackgroundColor:(UIColor *)color {
|
- (void)setDarkBackgroundColor:(UIColor *)color {
|
||||||
%orig([UIColor blackColor]);
|
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
|
||||||
}
|
}
|
||||||
- (void)layoutSubviews {
|
- (void)layoutSubviews {
|
||||||
%orig();
|
%orig();
|
||||||
|
|
@ -733,11 +696,6 @@ UIColor* raisedColor = [UIColor blackColor];
|
||||||
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
|
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%hook YTVideoView
|
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
|
||||||
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
|
|
||||||
}
|
|
||||||
%end
|
|
||||||
%hook YTSearchBoxView
|
%hook YTSearchBoxView
|
||||||
- (void)setBackgroundColor:(UIColor *)color {
|
- (void)setBackgroundColor:(UIColor *)color {
|
||||||
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
|
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue