From f5f0748d91dd129e3b908d7470d6691ea1c92fff Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Thu, 28 Sep 2023 20:36:12 -0500 Subject: [PATCH] Updated YTNoModernUI --- uYouPlus.xm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/uYouPlus.xm b/uYouPlus.xm index 623fbd7..dc5a1f0 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -365,7 +365,7 @@ static void repositionCreateTab(YTIGuideResponse *response) { + (NSString *)appVersion { return @"17.38.10"; } %end -%hook YTSettingsCell // made by Dayanch96 +%hook YTSettingsCell // Remove v17.38.10 Version Number - @Dayanch96 - (void)setDetailText:(id)arg1 { NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString *appVersion = infoDictionary[@"CFBundleShortVersionString"]; @@ -388,10 +388,23 @@ static void repositionCreateTab(YTIGuideResponse *response) { } %end -%hook YTQTMButton +%hook CALayer // Less Rounded iPhone Overflow Menu - YTNoModernUI +- (CGFloat)cornerRadius { + if (self == (CALayer *)0x285f309e0) { + return 6.0; + } + return %orig; +} +%end + +%hook YTQTMButton // No Modern/Rounded Buttons - YTNoModernUI + (BOOL)buttonModernizationEnabled { return NO; } %end +%hook YTBubbleHintView // No Modern/Rounded Hints - YTNoModernUI ++ (BOOL)modernRoundedCornersEnabled { return NO; } +%end + %hook YTColdConfig // Disable Modern Content - YTNoModernUI - (BOOL)creatorClientConfigEnableStudioModernizedMdeThumbnailPickerForClient { return NO; }