mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-05-17 18:22:04 +00:00
Remove gray background
This commit is contained in:
parent
97164998bf
commit
d86b7cf08c
2 changed files with 31 additions and 6 deletions
|
|
@ -60,6 +60,7 @@
|
||||||
// Hide Double tap to seek Overlay
|
// Hide Double tap to seek Overlay
|
||||||
@interface YTInlinePlayerDoubleTapIndicatorView : UIView
|
@interface YTInlinePlayerDoubleTapIndicatorView : UIView
|
||||||
@property (nonatomic, strong) UIView *scrimOverlay;
|
@property (nonatomic, strong) UIView *scrimOverlay;
|
||||||
|
@property(nonatomic, assign) CABasicAnimation *uYouEnhancedBlankAnimation;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
// Hide Home Tab - @bhackel
|
// Hide Home Tab - @bhackel
|
||||||
|
|
|
||||||
|
|
@ -762,15 +762,36 @@ BOOL isAd(YTIElementRenderer *self) {
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
// Hide double tap to seek overlay - @arichornlover
|
// Hide double tap to seek overlay - @arichornlover & @bhackel
|
||||||
|
%group gHideDoubleTapToSeekOverlay
|
||||||
%hook YTInlinePlayerDoubleTapIndicatorView
|
%hook YTInlinePlayerDoubleTapIndicatorView
|
||||||
- (void)layoutSubviews {
|
%property(nonatomic, assign) CABasicAnimation *uYouEnhancedBlankAnimation;
|
||||||
%orig;
|
- (CABasicAnimation *)alphaAnimation {
|
||||||
if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) {
|
NSLog(@"bhackel: alphaAnimation 1");
|
||||||
self.frame = CGRectZero;
|
// Create a new basic animation for the opacity property
|
||||||
}
|
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"opacity"];
|
||||||
|
|
||||||
|
// Set both fromValue and toValue to 1.0 - no visible change will occur
|
||||||
|
NSLog(@"bhackel: alphaAnimation 2");
|
||||||
|
animation.fromValue = @0.0;
|
||||||
|
NSLog(@"bhackel: alphaAnimation 3");
|
||||||
|
animation.toValue = @0.0;
|
||||||
|
|
||||||
|
// Set the duration of the animation
|
||||||
|
NSLog(@"bhackel: alphaAnimation 4");
|
||||||
|
animation.duration = 0.0; // The animation will apply immediately
|
||||||
|
|
||||||
|
// Additional properties to ensure the animation does not alter the layer
|
||||||
|
NSLog(@"bhackel: alphaAnimation 5");
|
||||||
|
animation.fillMode = kCAFillModeForwards;
|
||||||
|
NSLog(@"bhackel: alphaAnimation 6");
|
||||||
|
animation.removedOnCompletion = NO;
|
||||||
|
|
||||||
|
NSLog(@"bhackel: alphaAnimation 7");
|
||||||
|
return animation;
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
// Disable pull to enter vertical/portrait fullscreen gesture - @bhackel
|
// Disable pull to enter vertical/portrait fullscreen gesture - @bhackel
|
||||||
// This was introduced in version 19.XX
|
// This was introduced in version 19.XX
|
||||||
|
|
@ -1525,6 +1546,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
||||||
if (IS_ENABLED(@"hideHomeTab_enabled")) {
|
if (IS_ENABLED(@"hideHomeTab_enabled")) {
|
||||||
%init(gHideHomeTab);
|
%init(gHideHomeTab);
|
||||||
}
|
}
|
||||||
|
if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) {
|
||||||
|
%init(gHideDoubleTapToSeekOverlay);
|
||||||
|
}
|
||||||
|
|
||||||
// YTNoModernUI - @arichorn
|
// YTNoModernUI - @arichorn
|
||||||
BOOL ytNoModernUIEnabled = IS_ENABLED(@"ytNoModernUI_enabled");
|
BOOL ytNoModernUIEnabled = IS_ENABLED(@"ytNoModernUI_enabled");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue