diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 53b81c0..ed92856 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -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