mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 22:22:06 +00:00
Merge pull request #1082 from dayanch96/uYouPlus
This commit is contained in:
commit
e5997c2f65
2 changed files with 14 additions and 14 deletions
18
Settings.xm
18
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")
|
||||
|
|
|
|||
10
uYouPlus.xm
10
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue