From e7b460b09d7cc0901eb6ac5eeb81b96420e717e1 Mon Sep 17 00:00:00 2001 From: "aricloverGitHub (INACTIVE)" <78001398+arichornlover@users.noreply.github.com> Date: Wed, 22 Jan 2025 00:59:33 +0000 Subject: [PATCH] Fix Old Dark Theme (video player) Fix Video Player showing the wrong color for some reason when Old Dark Mode is active. --- Sources/uYouPlusThemes.xm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/uYouPlusThemes.xm b/Sources/uYouPlusThemes.xm index 5447fc1..22e5a3c 100644 --- a/Sources/uYouPlusThemes.xm +++ b/Sources/uYouPlusThemes.xm @@ -81,6 +81,13 @@ self.subviews[0].backgroundColor = [UIColor clearColor]; } %end + +%hook YTAsyncCollectionView +- (void)didMoveToWindow { + %orig; + self.backgroundColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:1.0]; +} +%end %end # pragma mark - OLED dark mode by BandarHL