mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
680ae2a7f8
commit
10282a2d9f
1 changed files with 13 additions and 9 deletions
22
uYouPlus.xm
22
uYouPlus.xm
|
|
@ -1102,14 +1102,16 @@ static void replaceTab(YTIGuideResponse *response) {
|
||||||
%group gRedSubscribeButton
|
%group gRedSubscribeButton
|
||||||
%hook ELMContainerNode
|
%hook ELMContainerNode
|
||||||
- (void)setBackgroundColor:(id)redcolor {
|
- (void)setBackgroundColor:(id)redcolor {
|
||||||
id displayView = [self valueForKey:@"_asDisplayView"];
|
id displayView = [self valueForKey:@"_asDisplayView"];
|
||||||
if ([displayView isKindOfClass:NSClassFromString(@"_ASDisplayView")]) {
|
if ([displayView isKindOfClass:NSClassFromString(@"_ASDisplayView")]) {
|
||||||
NSString *accessibilityIdentifier = [self accessibilityIdentifier];
|
NSString *accessibilityIdentifier = [self accessibilityIdentifier];
|
||||||
if ([accessibilityIdentifier isEqualToString:@"eml.compact_subscribe_button"]) {
|
if ([accessibilityIdentifier isEqualToString:@"eml.compact_subscribe_button"]) {
|
||||||
redcolor = [UIColor redColor];
|
redcolor = [UIColor redColor];
|
||||||
|
}
|
||||||
|
%orig(redcolor);
|
||||||
|
} else {
|
||||||
|
%orig(redcolor);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
%orig(redcolor);
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
@ -1134,9 +1136,11 @@ if ([displayView isKindOfClass:NSClassFromString(@"_ASDisplayView")]) {
|
||||||
[accessibilityLabel isEqualToString:@"Clip"] ||
|
[accessibilityLabel isEqualToString:@"Clip"] ||
|
||||||
[accessibilityLabel isEqualToString:@"Save to playlist"]) {
|
[accessibilityLabel isEqualToString:@"Save to playlist"]) {
|
||||||
clearcolor = [UIColor clearColor];
|
clearcolor = [UIColor clearColor];
|
||||||
|
}
|
||||||
|
%orig(clearcolor);
|
||||||
|
} else {
|
||||||
|
%orig(clearcolor);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
%orig(clearcolor);
|
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue