From f99dc2c54d6ec3e3f5c5727c542a7c0531650af0 Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sun, 12 Jan 2025 00:56:00 -0600 Subject: [PATCH] Update uYouPlus.xm --- Sources/uYouPlus.xm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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