From 9ef500870b1370199bede29c7e71b3ee69b51456 Mon Sep 17 00:00:00 2001 From: arichorn <78001398+arichorn@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:38:35 -0500 Subject: [PATCH] Update Themes.xm --- Source/Themes.xm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Themes.xm b/Source/Themes.xm index d32107d..a92f983 100644 --- a/Source/Themes.xm +++ b/Source/Themes.xm @@ -20,6 +20,11 @@ static BOOL oldDarkTheme() { // Default Dark theme %group gDefaultDarkTheme UIColor *defaultColor = [UIColor colorWithRed: 0.06 green: 0.06 blue: 0.06 alpha: 1.00]; +%hook YTCommonColorPalette +- (UIColor *)baseBackground { + return self.pageStyle == 1 ? defaultColor : %orig; +} +%end %hook YTPivotBarView - (void)setBackgroundColor:(UIColor *)color { return isDarkMode() ? %orig(defaultColor) : %orig;