mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-29 01:48:44 +00:00
Fixed LowContrastMode not working (v16.42.3 LTS)
sorry for removing something that shouldn't be removed. this whole file is everywhere on the tweaks.
This commit is contained in:
parent
63880797b9
commit
bede8d8844
1 changed files with 135 additions and 0 deletions
|
|
@ -51,6 +51,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette // Changes Texts & Icons in YouTube Bottom Bar (Doesn't change Texts & Icons under the video player)
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.38 green: 0.38 blue: 0.38 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.38 green: 0.38 blue: 0.38 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette // Changes Texts & Icons in YouTube Bottom Bar (Doesn't change Texts & Icons under the video player)
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -107,6 +122,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette // Changes Texts & Icons in YouTube Bottom Bar (Doesn't change Texts & Icons under the video player)
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.84 green: 0.25 blue: 0.23 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.84 green: 0.25 blue: 0.23 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -169,6 +199,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.04 green: 0.41 blue: 0.62 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.04 green: 0.41 blue: 0.62 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -231,6 +276,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.00 green: 0.50 blue: 0.13 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.00 green: 0.50 blue: 0.13 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -293,6 +353,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.77 green: 0.71 blue: 0.14 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.77 green: 0.71 blue: 0.14 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -355,6 +430,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.77 green: 0.71 blue: 0.14 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.77 green: 0.71 blue: 0.14 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -417,6 +507,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.42 green: 0.05 blue: 0.68 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.42 green: 0.05 blue: 0.68 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -479,6 +584,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.29 green: 0.00 blue: 0.51 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.29 green: 0.00 blue: 0.51 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
@ -541,6 +661,21 @@ static BOOL pinkContrastMode() {
|
|||
}
|
||||
%end
|
||||
|
||||
%hook YTColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.81 green: 0.56 blue: 0.71 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
- (UIColor *)textSecondary {
|
||||
if (self.pageStyle == 1) {
|
||||
return [UIColor whiteColor]; // Dark Theme
|
||||
}
|
||||
return [UIColor colorWithRed: 0.81 green: 0.56 blue: 0.71 alpha: 1.00]; // Light Theme
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTCommonColorPalette
|
||||
- (UIColor *)textPrimary {
|
||||
if (self.pageStyle == 1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue