mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-13 16:31:34 +00:00
Merge pull request #534 from bhackel/feat/disable-vert-fullscreen-gesture
Add toggle to disable "pull to full"
This commit is contained in:
commit
035c43ceee
2 changed files with 14 additions and 0 deletions
|
|
@ -657,6 +657,16 @@ BOOL isAd(YTIElementRenderer *self) {
|
|||
}
|
||||
%end
|
||||
|
||||
// Disable pull to enter vertical fullscreen gesture - @bhackel
|
||||
// This was introduced in version 19.XX
|
||||
%group gDisablePullToFull
|
||||
%hook YTColdConfig
|
||||
- (BOOL)enablePullToFull { return NO; }
|
||||
- (BOOL)enablePullToFullAlwaysExitFullscreenLandscape { return NO; }
|
||||
%end
|
||||
%end
|
||||
|
||||
|
||||
// Video Controls Overlay Options
|
||||
// Hide CC / Hide Autoplay switch / Hide YTMusic Button / Enable Share Button / Enable Save to Playlist Button
|
||||
%hook YTMainAppControlsOverlayView
|
||||
|
|
@ -1389,6 +1399,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
|||
if (IS_ENABLED(@"YTTapToSeek_enabled")) {
|
||||
%init(YTTTS_Tweak);
|
||||
}
|
||||
if (IS_ENABLED(@"disablePullToFull_enabled")) {
|
||||
%init(gDisablePullToFull);
|
||||
}
|
||||
|
||||
// YTNoModernUI - @arichorn
|
||||
BOOL ytNoModernUIEnabled = IS_ENABLED(@"ytNoModernUI_enabled");
|
||||
|
|
|
|||
|
|
@ -229,6 +229,7 @@ extern NSBundle *uYouPlusBundle();
|
|||
SWITCH_ITEM2(LOC(@"PINCH_TO_ZOOM"), LOC(@"PINCH_TO_ZOOM_DESC"), @"pinchToZoom_enabled");
|
||||
SWITCH_ITEM(LOC(@"YT_MINIPLAYER"), LOC(@"YT_MINIPLAYER_DESC"), @"ytMiniPlayer_enabled");
|
||||
SWITCH_ITEM2(LOC(@"STOCK_VOLUME_HUD"), LOC(@"STOCK_VOLUME_HUD_DESC"), @"stockVolumeHUD_enabled");
|
||||
SWITCH_ITEM2(LOC(@"Disable portrait fullscreen gesture"), LOC(@"Disable the drag gesture to enter vertical fullscreen"), @"disablePullToFull_enabled");
|
||||
|
||||
# pragma mark - Video controls overlay options
|
||||
SECTION_HEADER(LOC(@"VIDEO_PLAYER_OPTIONS"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue