Merge pull request #1082 from dayanch96/uYouPlus
This commit is contained in:
+9
-9
@@ -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")
|
||||
|
||||
+5
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user