testing changing ASScrolView color

This commit is contained in:
Balackburn
2023-07-31 15:13:03 +02:00
parent 8a53fbbacd
commit 51ac353f8f

View File

@@ -111,6 +111,12 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
} }
%end %end
%hook ASScrollView
- (void)setBackgroundColor:(UIColor *)color {
return isDarkMode() ? %orig(customColor) : %orig;
}
%end
%hook YTPivotBarView %hook YTPivotBarView
- (void)setBackgroundColor:(UIColor *)color { - (void)setBackgroundColor:(UIColor *)color {
return isDarkMode() ? %orig(customColor) : %orig; return isDarkMode() ? %orig(customColor) : %orig;
@@ -503,6 +509,13 @@ UIColor* raisedColor = [UIColor blackColor];
return isDarkMode() ? %orig([UIColor blackColor]) : %orig; return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
} }
%end %end
%hook ASScrollView
- (void)setBackgroundColor:(UIColor *)color {
return isDarkMode() ? %orig([UIColor blackColor]) : %orig;
}
%end
%hook YTHeaderView %hook YTHeaderView
- (void)setBackgroundColor:(UIColor *)color { - (void)setBackgroundColor:(UIColor *)color {
return isDarkMode() ? %orig([UIColor blackColor]) : %orig; return isDarkMode() ? %orig([UIColor blackColor]) : %orig;