From 43d5e38056d96ae01d50559cdb1268141e064ad4 Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Mon, 8 Apr 2024 23:00:59 -0400 Subject: [PATCH] Fix mistakes --- Sources/uYouPlus.h | 2 +- Sources/uYouPlus.xm | 4 +--- Sources/uYouPlusThemes.xm | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/uYouPlus.h b/Sources/uYouPlus.h index 7f17339..ecc45ca 100644 --- a/Sources/uYouPlus.h +++ b/Sources/uYouPlus.h @@ -27,7 +27,7 @@ #import #import #import -#import +#import // Hide buttons under the video player by @PoomSmart #import diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index 2312bd5..c26a9bb 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -602,15 +602,13 @@ BOOL isAd(YTIElementRenderer *self) { %end // Use stock iOS volume HUD -// Use YTColdConfig's method instead of YTStockVolumeHUD.xm, see https://x.com/PoomSmart/status/1756904290445332653 +// Use YTColdConfig's method, see https://x.com/PoomSmart/status/1756904290445332653 %group gStockVolumeHUD %hook YTColdConfig - (BOOL)iosUseSystemVolumeControlInFullscreen { return IS_ENABLED(@"stockVolumeHUD_enabled") ? YES : %orig; } %end -%end - %hook UIApplication - (void)setSystemVolumeHUDEnabled:(BOOL)arg1 forAudioCategory:(id)arg2 { %orig(true, arg2); diff --git a/Sources/uYouPlusThemes.xm b/Sources/uYouPlusThemes.xm index 5c278b2..5386911 100644 --- a/Sources/uYouPlusThemes.xm +++ b/Sources/uYouPlusThemes.xm @@ -167,6 +167,7 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha: %hook GOODialogView - (void)setBackgroundColor:(UIColor *)color { return IS_DARK_APPEARANCE_ENABLED ? %orig([UIColor blackColor]) : %orig; +} %end // Playlist sort