mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 07:41:59 +00:00
Update uYouPlus.xm
This commit is contained in:
parent
293f3e2f98
commit
9af049cd65
1 changed files with 17 additions and 4 deletions
|
|
@ -786,15 +786,28 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
|
|
||||||
// Bring back the Red Progress Bar and Gray Buffer Progress
|
// Bring back the Red Progress Bar and Gray Buffer Progress
|
||||||
%group gRedProgressBar
|
%group gRedProgressBar
|
||||||
%hook YTInlinePlayerBarContainerView
|
%hook YTSegmentableInlinePlayerBarView
|
||||||
|
- (void)setBufferedProgressBarColor:(id)arg1 {
|
||||||
|
[UIColor colorWithRed:1.00 green:1.00 blue:1.00 alpha:0.50];
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook YTInlinePlayerBarContainerView // Red Progress Bar - Old (Compatible for v17.33.2-v19.10.7)
|
||||||
- (id)quietProgressBarColor {
|
- (id)quietProgressBarColor {
|
||||||
return [UIColor redColor];
|
return [UIColor redColor];
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
%hook YTSegmentableInlinePlayerBarView
|
%hook YTPlayerBarRectangleDecorationView // Red Progress Bar - New (Compatible for v19.10.7-latest)
|
||||||
- (void)setBufferedProgressBarColor:(id)arg1 {
|
- (void)drawRectangleDecorationWithSideMasks:(CGRect)rect {
|
||||||
[UIColor colorWithRed:1.00 green:1.00 blue:1.00 alpha:0.50];
|
if (IS_ENABLED(@"redProgressBar_enabled")) {
|
||||||
|
YTIPlayerBarDecorationModel *model = [self valueForKey:@"_model"];
|
||||||
|
int overlayMode = model.playingState.overlayMode;
|
||||||
|
model.playingState.overlayMode = 1;
|
||||||
|
%orig;
|
||||||
|
model.playingState.overlayMode = overlayMode;
|
||||||
|
} else
|
||||||
|
%orig;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
%end
|
%end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue