Update uYouPlus.xm

This commit is contained in:
aricloverEXALT 2025-01-12 00:56:00 -06:00 committed by GitHub
parent f166b3d205
commit f99dc2c54d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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