mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
New Option Red Subscribe Button
New option to replace the subscribe button color from white to red!
This commit is contained in:
parent
91d3529261
commit
9c85621b2d
1 changed files with 15 additions and 0 deletions
15
uYouPlus.xm
15
uYouPlus.xm
|
|
@ -1080,6 +1080,18 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
}
|
||||
%end
|
||||
|
||||
// Red Subscribe Button - @arichorn
|
||||
%group gRedSubscribeButton
|
||||
%hook ELMContainerNode
|
||||
- (void)setBackgroundColor:(id)color {
|
||||
if ([self.accessibilityIdentifier isEqualToString:@"eml.compact_subscribe_button"] || {
|
||||
color = [UIColor redColor];
|
||||
}
|
||||
%orig(color);
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
// Hide the Button Containers under the Video Player - 17.x.x and up - @arichorn
|
||||
%group gHideButtonContainers
|
||||
%hook ELMContainerNode
|
||||
|
|
@ -1480,6 +1492,9 @@ static void replaceTab(YTIGuideResponse *response) {
|
|||
if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) {
|
||||
%init(gHideVideoPlayerShadowOverlayButtons);
|
||||
}
|
||||
if (IsEnabled(@"redSubscribeButton_enabled")) {
|
||||
%init(gRedSubscribeButton);
|
||||
}
|
||||
if (IsEnabled(@"hideButtonContainers_enabled")) {
|
||||
%init(gHideButtonContainers);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue