mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 21:26:04 +00:00
Updated Hide Fullscreen Button
This is a replacement since the previous implementation breaks PoomSmart’s 1.2.0+ YouQuality tweak.
This commit is contained in:
parent
7f5a231f46
commit
3978100972
1 changed files with 15 additions and 10 deletions
|
|
@ -682,8 +682,6 @@ static int contrastMode() {
|
|||
- (BOOL)showModernMiniplayerRedesign { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigEnableModernButtonsForNative { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigIosEnableModernTabsForNative { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigIosEnableEpUxUpdates { return NO; } // Deprecated
|
||||
- (BOOL)uiSystemsClientGlobalConfigIosEnableSheetsUxUpdates { return NO; } // Deprecated
|
||||
- (BOOL)uiSystemsClientGlobalConfigIosEnableSnackbarModernization { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigModernizeNativeBgColor { return NO; }
|
||||
- (BOOL)uiSystemsClientGlobalConfigModernizeNativeTextColor { return NO; }
|
||||
|
|
@ -1041,8 +1039,9 @@ static int contrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
/*
|
||||
// LEGACY VERSION ⚠️
|
||||
// Hide Fullscreen Button - @arichornlover - PoomSmart's Newer Version of the *YouQuality* tweak breaks when enabling this
|
||||
// Hide Fullscreen Button - @arichornlover - PoomSmart's 1.2.0+ Versions of the *YouQuality* tweak makes the button invisible when enabling this
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (void)layoutSubviews {
|
||||
%orig;
|
||||
|
|
@ -1059,15 +1058,18 @@ static int contrastMode() {
|
|||
}
|
||||
}
|
||||
%end
|
||||
*/
|
||||
|
||||
// NEW VERSION
|
||||
// Hide Fullscreen Button - @arichornlover - UNTESTED!
|
||||
// %hook YTInlinePlayerBarContainerView
|
||||
// - (BOOL)fullscreenButtonDisabled { return YES; }
|
||||
// - (BOOL)canShowFullscreenButton { return NO; }
|
||||
// - (BOOL)canShowFullscreenButtonExperimental { return NO; }
|
||||
// - (void)setFullscreenButtonDisabled:(BOOL) // this line should remain disabled for now.
|
||||
// %end
|
||||
// Hide Fullscreen Button - @arichornlover
|
||||
%group gHideFullscreenButton
|
||||
%hook YTInlinePlayerBarContainerView
|
||||
- (BOOL)fullscreenButtonDisabled { return YES; }
|
||||
- (BOOL)canShowFullscreenButton { return NO; }
|
||||
- (BOOL)canShowFullscreenButtonExperimental { return NO; }
|
||||
// - (void)setFullscreenButtonDisabled:(BOOL) // Uncomment and might implement this if needed - @arichornlover
|
||||
%end
|
||||
%end
|
||||
|
||||
// Hide HUD Messages
|
||||
%hook YTHUDMessageView
|
||||
|
|
@ -1674,6 +1676,9 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
|
|||
if (IS_ENABLED(@"portraitFullscreen_enabled")) {
|
||||
%init(gPortraitFullscreen);
|
||||
}
|
||||
if (IS_ENABLED(@"disableFullscreenButton_enabled")) {
|
||||
%init(gHideFullscreenButton);
|
||||
}
|
||||
if (IS_ENABLED(@"hideFullscreenActions_enabled")) {
|
||||
%init(hideFullscreenActions);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue