From 98fc36ca98771fb6c89f58ba93fd345ed714a3ce Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:33:44 -0600 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=9C=20YTAppPivotBarItemStyle?= =?UTF-8?q?=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/uYouPlus.xm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 1abe5be..75b9b4d 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -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 {