Fix fullscreen button bugs

This commit is contained in:
Bryce Hackel 2024-03-18 14:28:26 -07:00
parent 70087d053e
commit cda8e32fad
No known key found for this signature in database
GPG key ID: F031960F08455E88
2 changed files with 8 additions and 2 deletions

View file

@ -51,6 +51,12 @@
@property (nonatomic, strong) UIView *_scrimOverlay;
@end
// Hide fullscreen action buttons at the bottom = @bhackel
@interface YTFullscreenActionsView : UIView
@property (atomic, assign, readwrite, getter=isHidden) BOOL hidden;
@property (atomic, assign, readwrite) CGRect frame;
@end
// uYouPlus
@interface YTHeaderLogoController : UIView
@property(readonly, nonatomic) long long pageStyle;

View file

@ -514,8 +514,8 @@ static NSString *accessGroupID() {
- (void)layoutSubviews {
%orig;
if (IS_ENABLED(@"hideFullscreenActions_enabled")) {
self.fullscreenActionsButton.hidden = YES;
self.fullscreenActionsButton.frame = CGRectZero;
self.hidden = YES;
self.frame = CGRectZero;
}
}
%end