Merge pull request #1082 from dayanch96/uYouPlus

This commit is contained in:
Nguyễn Đạt 2023-04-19 09:50:43 +07:00 committed by GitHub
commit e5997c2f65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View file

@ -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")

View file

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