From 11a3e75b0de971727d6b085e3fd99a94c364e199 Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:44:59 -0700 Subject: [PATCH] Default disable big mini player --- YTLitePlus.xm | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/YTLitePlus.xm b/YTLitePlus.xm index d666a27..1c6e9af 100644 --- a/YTLitePlus.xm +++ b/YTLitePlus.xm @@ -561,6 +561,7 @@ BOOL isTabSelected = NO; } %end +/* // BigYTMiniPlayer: https://github.com/Galactic-Dev/BigYTMiniPlayer %group Main %hook YTWatchMiniBarView @@ -585,6 +586,20 @@ BOOL isTabSelected = NO; } %end %end +*/ +// New Big YT Mini Player - @bhackel +%hook YTColdConfig +- (BOOL)enableIosFloatingMiniplayer { + // Modify if not on iPad + return (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad) ? IsEnabled(@"bigYTMiniPlayer_enabled") : %orig; +} +- (BOOL)enableIosFloatingMiniplayerRepositioning { + return (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad) ? IsEnabled(@"bigYTMiniPlayer_enabled") : %orig; +} +- (BOOL)enableIosFloatingMiniplayerResizing { + return (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad) ? IsEnabled(@"bigYTMiniPlayer_enabled") : %orig; +} +%end // App Settings Overlay Options %group gDisableAccountSection @@ -718,9 +733,9 @@ BOOL isTabSelected = NO; if (IsEnabled(@"iPhoneLayout_enabled")) { %init(giPhoneLayout); } - if (IsEnabled(@"bigYTMiniPlayer_enabled") && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) { - %init(Main); - } + // if (IsEnabled(@"bigYTMiniPlayer_enabled") && (UIDevice.currentDevice.userInterfaceIdiom != UIUserInterfaceIdiomPad)) { + // %init(Main); + // } if (IsEnabled(@"hideVideoPlayerShadowOverlayButtons_enabled")) { %init(gHideVideoPlayerShadowOverlayButtons); }