From 97a959f0da6b05b01fb112c60fd0e56b8016b060 Mon Sep 17 00:00:00 2001 From: Balackburn <93828569+Balackburn@users.noreply.github.com> Date: Sun, 9 Jul 2023 19:07:11 +0200 Subject: [PATCH] updated OLD darkmode --- Source/Themes.xm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/Themes.xm b/Source/Themes.xm index 9eaae22..bf3606b 100644 --- a/Source/Themes.xm +++ b/Source/Themes.xm @@ -99,6 +99,13 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) { } %end +// Testing OLED YTPlayerView for OldDarkmode (video background) +%hook YTPlayerView +- (UIColor *)backgroundColor:(NSInteger)pageStyle { + return pageStyle == 1 ? [UIColor blackColor] : %orig; +} +%end + // Hide broken YTCinematicContainerView %hook YTCinematicContainerView - (void)setHidden:(BOOL)arg1 {