Remove gray background

This commit is contained in:
Bryce Hackel 2024-05-01 22:29:49 -07:00
parent 97164998bf
commit d86b7cf08c
No known key found for this signature in database
GPG key ID: F031960F08455E88
2 changed files with 31 additions and 6 deletions

View file

@ -60,6 +60,7 @@
// Hide Double tap to seek Overlay
@interface YTInlinePlayerDoubleTapIndicatorView : UIView
@property (nonatomic, strong) UIView *scrimOverlay;
@property(nonatomic, assign) CABasicAnimation *uYouEnhancedBlankAnimation;
@end
// Hide Home Tab - @bhackel

View file

@ -762,15 +762,36 @@ BOOL isAd(YTIElementRenderer *self) {
}
%end
// Hide double tap to seek overlay - @arichornlover
// Hide double tap to seek overlay - @arichornlover & @bhackel
%group gHideDoubleTapToSeekOverlay
%hook YTInlinePlayerDoubleTapIndicatorView
- (void)layoutSubviews {
%orig;
if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) {
self.frame = CGRectZero;
}
%property(nonatomic, assign) CABasicAnimation *uYouEnhancedBlankAnimation;
- (CABasicAnimation *)alphaAnimation {
NSLog(@"bhackel: alphaAnimation 1");
// 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
// Disable pull to enter vertical/portrait fullscreen gesture - @bhackel
// This was introduced in version 19.XX
@ -1525,6 +1546,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
if (IS_ENABLED(@"hideHomeTab_enabled")) {
%init(gHideHomeTab);
}
if (IS_ENABLED(@"hideDoubleTapToSeekOverlay_enabled")) {
%init(gHideDoubleTapToSeekOverlay);
}
// YTNoModernUI - @arichorn
BOOL ytNoModernUIEnabled = IS_ENABLED(@"ytNoModernUI_enabled");