Updated YTNoModernUI

This commit is contained in:
arichorn 2023-09-28 20:36:12 -05:00 committed by GitHub
parent de3eb16662
commit f5f0748d91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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