mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-29 20:20:41 -04:00 
			
		
		
		
	LowContrastMode v1.6.0
This commit is contained in:
		| @@ -13,7 +13,7 @@ static BOOL customContrastMode() { | |||||||
|  |  | ||||||
| UIColor *lcmHexColor; | UIColor *lcmHexColor; | ||||||
|  |  | ||||||
| %group gLowContrastMode // Low Contrast Mode v1.4.3 (Compatible with only YouTube v16.46.5-v17.38.10) | %group gLowContrastMode // Low Contrast Mode v1.6.0 (Compatible with only YouTube v16.46.5-v17.38.10) | ||||||
| %hook UIColor | %hook UIColor | ||||||
| + (UIColor *)whiteColor { // Dark Theme Color | + (UIColor *)whiteColor { // Dark Theme Color | ||||||
|          return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00]; |          return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00]; | ||||||
| @@ -39,32 +39,53 @@ UIColor *lcmHexColor; | |||||||
| %end | %end | ||||||
| %hook YTCommonColorPalette | %hook YTCommonColorPalette | ||||||
| - (UIColor *)textPrimary { | - (UIColor *)textPrimary { | ||||||
|  |     NSLog(@"LowContrastMode: textPrimary called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)textSecondary { | - (UIColor *)textSecondary { | ||||||
|  |     NSLog(@"LowContrastMode: textSecondary called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)overlayTextPrimary { | - (UIColor *)overlayTextPrimary { | ||||||
|  |     NSLog(@"LowContrastMode: overlayTextPrimary called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)overlayTextSecondary { | - (UIColor *)overlayTextSecondary { | ||||||
|  |     NSLog(@"LowContrastMode: overlayTextSecondary called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)iconActive { | - (UIColor *)iconActive { | ||||||
|  |     NSLog(@"LowContrastMode: iconActive called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)iconActiveOther { | - (UIColor *)iconActiveOther { | ||||||
|  |     NSLog(@"LowContrastMode: iconActiveOther called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)brandIconActive { | - (UIColor *)brandIconActive { | ||||||
|  |     NSLog(@"LowContrastMode: brandIconActive called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)staticBrandWhite { | - (UIColor *)staticBrandWhite { | ||||||
|  |     NSLog(@"LowContrastMode: staticBrandWhite called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
| - (UIColor *)overlayIconActiveOther { | - (UIColor *)overlayIconActiveOther { | ||||||
|  |     NSLog(@"LowContrastMode: overlayIconActiveOther called"); | ||||||
|     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; |     return self.pageStyle == 1 ? [UIColor whiteColor] : %orig; | ||||||
| } | } | ||||||
|  | - (UIColor *)overlayIconInactive { | ||||||
|  |     NSLog(@"LowContrastMode: overlayIconInactive called"); | ||||||
|  |     return self.pageStyle == 1 ? [[UIColor whiteColor] colorWithAlphaComponent:0.7] : %orig; | ||||||
|  | } | ||||||
|  | - (UIColor *)overlayIconDisabled { | ||||||
|  |     NSLog(@"LowContrastMode: overlayIconDisabled called"); | ||||||
|  |     return self.pageStyle == 1 ? [[UIColor whiteColor] colorWithAlphaComponent:0.3] : %orig; | ||||||
|  | } | ||||||
|  | - (UIColor *)overlayFilledButtonActive { | ||||||
|  |     NSLog(@"LowContrastMode: overlayFilledButtonActive called"); | ||||||
|  |     return self.pageStyle == 1 ? [[UIColor whiteColor] colorWithAlphaComponent:0.2] : %orig; | ||||||
|  | } | ||||||
| %end | %end | ||||||
| %hook YTColor | %hook YTColor | ||||||
| + (UIColor *)white2 { | + (UIColor *)white2 { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 arichornlover
					arichornlover