Add “ YTAppPivotBarItemStyle”

This commit is contained in:
aricloverEXALT 2025-01-11 21:33:44 -06:00 committed by GitHub
parent c397afd2f7
commit 98fc36ca98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,14 @@ NSBundle *tweakBundle = uYouPlusBundle();
// Notifications Tab - @arichornlover & @dayanch96
%group gShowNotificationsTab
%hook YTAppPivotBarItemStyle
- (UIImage *)pivotBarItemIconImageWithIconType:(int)type color:(UIColor *)color useNewIcons:(BOOL)isNew selected:(BOOL)isSelected {
NSString *imageName = isSelected ? @"notifications_selected" : @"notifications_unselected";
NSString *imagePath = [tweakBundle pathForResource:imageName ofType:@"png" inDirectory:@"UI"];
UIImage *image = [UIImage imageWithContentsOfFile:imagePath];
return type == 1 ? image : %orig;
}
%end
%hook YTPivotBarView
- (void)setRenderer:(YTIPivotBarRenderer *)renderer {
@try {