mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Update Themes.xm
This commit is contained in:
parent
38d8374294
commit
9ef500870b
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue