diff --git a/Settings.xm b/Settings.xm index 82565f3..a87b222 100644 --- a/Settings.xm +++ b/Settings.xm @@ -189,15 +189,15 @@ extern NSBundle *uYouPlusBundle(); } settingItemId:0], - // [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"RED_PROGRESS_BAR") - // titleDescription:LOC(@"RED_PROGRESS_BAR_DESC") - // accessibilityIdentifier:nil - // switchOn:IsEnabled(@"redProgressBar_enabled") - // switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { - // [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"redProgressBar_enabled"]; - // return YES; - // } - // settingItemId:0], + [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"RED_PROGRESS_BAR") + titleDescription:LOC(@"RED_PROGRESS_BAR_DESC") + accessibilityIdentifier:nil + switchOn:IsEnabled(@"redProgressBar_enabled") + switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) { + [[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"redProgressBar_enabled"]; + return YES; + } + settingItemId:0], [YTSettingsSectionItemClass switchItemWithTitle:LOC(@"HIDE_HOVER_CARD") titleDescription:LOC(@"HIDE_HOVER_CARD_DESC") diff --git a/uYouPlus.xm b/uYouPlus.xm index 21fff4d..f15a028 100644 --- a/uYouPlus.xm +++ b/uYouPlus.xm @@ -718,11 +718,11 @@ void DEMC_centerRenderingView() { %end // Bring back the red progress bar - Broken?! -// %hook YTColdConfig -// - (BOOL)segmentablePlayerBarUpdateColors { -// return IsEnabled(@"redProgressBar_enabled") ? NO : %orig; -// } -// %end +%hook YTInlinePlayerBarContainerView +- (id)quietProgressBarColor { + return IsEnabled(@"redProgressBar_enabled") ? [UIColor redColor] : %orig; +} +%end // Disable the right panel in fullscreen mode %hook YTColdConfig