Update uYouPlus.xm

This commit is contained in:
aricloverEXALT 2025-01-12 07:17:58 -06:00 committed by GitHub
parent 3042f51516
commit 1fb03b0441
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,14 @@ NSBundle *tweakBundle = uYouPlusBundle();
//
// Notifications Tab appearance
UIImage *resizeImage(UIImage *image, CGSize newSize) {
UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0);
[image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
UIImage *resizedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return resizedImage;
}
static int getNotificationIconStyle() {
return [[NSUserDefaults standardUserDefaults] integerForKey:@"notificationIconStyle"];
}