Update Themes.xm

This commit is contained in:
arichorn 2023-07-31 06:34:42 -05:00 committed by GitHub
parent 2d25428338
commit 196b82f638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,13 +13,6 @@ static BOOL oldDarkTheme() {
return ([[NSUserDefaults standardUserDefaults] integerForKey:@"appTheme"] == 2);
}
// Patch - fix YouTube Dark Theme Header
%hook YTHeaderView
- (void)setBackgroundColor:(UIColor *)color {
return isDarkMode() ? %orig([UIColor colorWithRed:0.06 green:0.06 blue:0.06 alpha:1.0]) : %orig;
}
%end
// Themes.xm - Theme Options
// Old dark theme (gray)
%group gOldDarkTheme