mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Updated YTPivotBarIndicatorView
This time, instead of grouping it, it will be using %orig(YES) & %orig(NO) instead
This commit is contained in:
parent
b2e018ff45
commit
fa3eb37257
1 changed files with 6 additions and 11 deletions
17
uYouPlus.xm
17
uYouPlus.xm
|
|
@ -1191,18 +1191,16 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||
%end
|
||||
%end
|
||||
|
||||
%group gHideSubscriptionsNotificationBadge
|
||||
%hook YTPivotBarIndicatorView
|
||||
- (void)setHidden:(BOOL)hidden {
|
||||
if (hidden) {
|
||||
self.alpha = 0.0;
|
||||
} else {
|
||||
self.hidden = 1;
|
||||
}
|
||||
%orig(hidden);
|
||||
if (IsEnabled(@"hideSubscriptionsNotificationBadge_enabled")) {
|
||||
%orig(YES);
|
||||
} else {
|
||||
%orig(NO);
|
||||
}
|
||||
}
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
// YT startup animation
|
||||
%hook YTColdConfig
|
||||
|
|
@ -1268,9 +1266,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||
if (IsEnabled(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
|
||||
%init(giPhoneLayout);
|
||||
}
|
||||
if (IsEnabled(@"hideSubscriptionsNotificationBadge_enabled")) {
|
||||
%init(gHideSubscriptionsNotificationBadge);
|
||||
}
|
||||
if (IsEnabled(@"stockVolumeHUD_enabled")) {
|
||||
%init(gStockVolumeHUD);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue