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 | ||||
|  | ||||
| %hook YTELMView | ||||
| - (UIColor *)backgroundColor { | ||||
|          return [UIColor blackColor]; | ||||
| // Hide seperators | ||||
| @interface YTCollectionSeparatorView (HiddenProperty) | ||||
| @property (nonatomic, assign) BOOL hidden; | ||||
| @end | ||||
|  | ||||
| %hook YTCollectionSeparatorView | ||||
| %property (nonatomic, assign, setter=setHidden:) BOOL hidden; | ||||
|  | ||||
| - (void)setHidden:(BOOL)hidden { | ||||
|     %orig(hidden); | ||||
| } | ||||
|  | ||||
| %end | ||||
|  | ||||
| %hook YTELMView | ||||
| - (UIColor *)backgroundColor:(NSInteger)pageStyle { | ||||
|     return pageStyle == 1 ? [UIColor blackColor] : %orig; | ||||
| } | ||||
|  | ||||
| %hook YTHeaderViewController | ||||
| - (UIColor *)backgroundColor:(NSInteger)pageStyle { | ||||
|     return pageStyle == 1 ? [UIColor blackColor] : %orig; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn