mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
f166b3d205
commit
f99dc2c54d
1 changed files with 17 additions and 0 deletions
|
|
@ -17,6 +17,23 @@ NSBundle *uYouPlusBundle() {
|
|||
NSBundle *tweakBundle = uYouPlusBundle();
|
||||
//
|
||||
|
||||
// Notifications Tab appearance
|
||||
static int getNotificationIconStyle() {
|
||||
return [[NSUserDefaults standardUserDefaults] integerForKey:@"notificationIconStyle"];
|
||||
}
|
||||
static BOOL useDefaultStyle() {
|
||||
return IS_ENABLED(@"enableNotificationIconStyle") && getNotificationIconStyle() == 0;
|
||||
}
|
||||
static BOOL useThinOutlineStyle() {
|
||||
return IS_ENABLED(@"enableNotificationIconStyle") && getNotificationIconStyle() == 1;
|
||||
}
|
||||
static BOOL usePre2020Style() {
|
||||
return IS_ENABLED(@"enableNotificationIconStyle") && getNotificationIconStyle() == 2;
|
||||
}
|
||||
static BOOL useInboxStyle() {
|
||||
return IS_ENABLED(@"enableNotificationIconStyle") && getNotificationIconStyle() == 3;
|
||||
}
|
||||
|
||||
// Notifications Tab - @arichornlover & @dayanch96
|
||||
%group gShowNotificationsTab
|
||||
%hook YTAppPivotBarItemStyle
|
||||
|
|
|
|||
Loading…
Reference in a new issue