From 5e46d9936dc4a25ad2b2c8e18bedd307373c26ed Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichorn@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:05:45 -0600 Subject: [PATCH] New Option: uYouPlusExtra Logo --- Settings.xm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Settings.xm b/Settings.xm index aff4a22..031768f 100644 --- a/Settings.xm +++ b/Settings.xm @@ -1563,6 +1563,16 @@ extern NSBundle *uYouPlusBundle(); # pragma mark - Miscellaneous YTSettingsSectionItem *miscellaneousGroup = [YTSettingsSectionItemClass itemWithTitle:LOC(@"MISCELLANEOUS") accessibilityIdentifier:nil detailTextBlock:nil selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) { NSArray *rows = @[ + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"uYouPlusExtra Logo") + titleDescription:LOC(@"Toggle this to replace the YouTube Logo with the uYouPlusExtra Logo. App restart is required.") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"ytStartupAnimation_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"defaultYouTubeLogo_enabled"]; + return YES; + } + settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"ENABLE_YT_STARTUP_ANIMATION") titleDescription:LOC(@"ENABLE_YT_STARTUP_ANIMATION_DESC") accessibilityIdentifier:nil