mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Add “ YTAppPivotBarItemStyle”
This commit is contained in:
parent
c397afd2f7
commit
98fc36ca98
1 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue