mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-20 23:22:09 +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
|
// Notifications Tab - @arichornlover & @dayanch96
|
||||||
%group gShowNotificationsTab
|
%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
|
%hook YTPivotBarView
|
||||||
- (void)setRenderer:(YTIPivotBarRenderer *)renderer {
|
- (void)setRenderer:(YTIPivotBarRenderer *)renderer {
|
||||||
@try {
|
@try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue