mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-05 04:29:47 +00:00
Fix snackbar text being invisible (LowContrastMode)
This commit is contained in:
parent
f910a6ccce
commit
0adb3c865c
1 changed files with 11 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ static BOOL customContrastMode() {
|
|||
|
||||
UIColor *lcmHexColor;
|
||||
|
||||
%group gLowContrastMode // Low Contrast Mode v1.5.1 (Compatible with only YouTube v17.33.2-v17.38.10)
|
||||
%group gLowContrastMode // Low Contrast Mode v1.5.2 (Compatible with only YouTube v17.33.2-v17.38.10)
|
||||
%hook UIColor
|
||||
+ (UIColor *)whiteColor { // Dark Theme Color
|
||||
return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00];
|
||||
|
|
@ -295,6 +295,11 @@ UIColor *lcmHexColor;
|
|||
%orig([UIColor whiteColor]);
|
||||
}
|
||||
%end
|
||||
%hook UIControl // snackbar fix for lcm
|
||||
- (UIColor *)backgroundColor {
|
||||
return [UIColor blackColor];
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
%group gCustomContrastMode // Custom Contrast Mode (Hex Color)
|
||||
|
|
@ -571,6 +576,11 @@ UIColor *lcmHexColor;
|
|||
%orig([UIColor whiteColor]);
|
||||
}
|
||||
%end
|
||||
%hook UIControl // snackbar fix for lcm
|
||||
- (UIColor *)backgroundColor {
|
||||
return [UIColor blackColor];
|
||||
}
|
||||
%end
|
||||
%end
|
||||
|
||||
# pragma mark - ctor
|
||||
|
|
|
|||
Loading…
Reference in a new issue