mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-29 20:10:41 -04:00 
			
		
		
		
	testing hidding separators for darkmode
This commit is contained in:
		| @@ -186,12 +186,25 @@ BOOL areColorsEqual(UIColor *color1, UIColor *color2, CGFloat tolerance) { | |||||||
| } | } | ||||||
| %end | %end | ||||||
|  |  | ||||||
| %hook YTELMView | // Hide seperators | ||||||
| - (UIColor *)backgroundColor { | @interface YTCollectionSeparatorView (HiddenProperty) | ||||||
|          return [UIColor blackColor]; | @property (nonatomic, assign) BOOL hidden; | ||||||
|  | @end | ||||||
|  |  | ||||||
|  | %hook YTCollectionSeparatorView | ||||||
|  | %property (nonatomic, assign, setter=setHidden:) BOOL hidden; | ||||||
|  |  | ||||||
|  | - (void)setHidden:(BOOL)hidden { | ||||||
|  |     %orig(hidden); | ||||||
| } | } | ||||||
|  |  | ||||||
| %end | %end | ||||||
|  |  | ||||||
|  | %hook YTELMView | ||||||
|  | - (UIColor *)backgroundColor:(NSInteger)pageStyle { | ||||||
|  |     return pageStyle == 1 ? [UIColor blackColor] : %orig; | ||||||
|  | } | ||||||
|  |  | ||||||
| %hook YTHeaderViewController | %hook YTHeaderViewController | ||||||
| - (UIColor *)backgroundColor:(NSInteger)pageStyle { | - (UIColor *)backgroundColor:(NSInteger)pageStyle { | ||||||
|     return pageStyle == 1 ? [UIColor blackColor] : %orig; |     return pageStyle == 1 ? [UIColor blackColor] : %orig; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn