Skip to content

Commit

Permalink
Updated LowContrastMode
Browse files Browse the repository at this point in the history
Updated LowContrastMode and removed unnecessary code from it
  • Loading branch information
arichornlover authored Apr 17, 2023
1 parent 7c529c3 commit 2d789c1
Showing 1 changed file with 0 additions and 120 deletions.
120 changes: 0 additions & 120 deletions YouTubePlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -774,21 +774,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%end

%hook YTColorPalette // Changes Texts & Icons in YouTube Bottom Bar + Text Icons under 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) {
Expand Down Expand Up @@ -848,21 +833,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%end

%hook YTColorPalette
- (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) {
Expand Down Expand Up @@ -919,21 +889,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%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) {
Expand Down Expand Up @@ -990,21 +945,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%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) {
Expand Down Expand Up @@ -1061,21 +1001,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%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) {
Expand Down Expand Up @@ -1132,21 +1057,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%end

%hook YTColorPalette
- (UIColor *)textPrimary {
if (self.pageStyle == 1) {
return [UIColor whiteColor]; // Dark Theme
}
return [UIColor colorWithRed: 0.80 green: 0.49 blue: 0.05 alpha: 1.00]; // Light Theme
}
- (UIColor *)textSecondary {
if (self.pageStyle == 1) {
return [UIColor whiteColor]; // Dark Theme
}
return [UIColor colorWithRed: 0.80 green: 0.49 blue: 0.05 alpha: 1.00]; // Light Theme
}
%end

%hook YTCommonColorPalette
- (UIColor *)textPrimary {
if (self.pageStyle == 1) {
Expand Down Expand Up @@ -1203,21 +1113,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%end

%hook YTColorPalette
- (UIColor *)textPrimary {
if (self.pageStyle == 1) {
return [UIColor whiteColor]; // Dark Theme
}
return [UIColor colorWithRed: 0.44 green: 0.00 blue: 0.52 alpha: 1.00]; // Light Theme
}
- (UIColor *)textSecondary {
if (self.pageStyle == 1) {
return [UIColor whiteColor]; // Dark Theme
}
return [UIColor colorWithRed: 0.44 green: 0.00 blue: 0.52 alpha: 1.00]; // Light Theme
}
%end

%hook YTCommonColorPalette
- (UIColor *)textPrimary {
if (self.pageStyle == 1) {
Expand Down Expand Up @@ -1274,21 +1169,6 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%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) {
Expand Down

0 comments on commit 2d789c1

Please sign in to comment.