mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-14 09:10:25 +00:00
Revert some OLED Dark Theme changes
This commit is contained in:
parent
5c401620dd
commit
b1fcf429f6
1 changed files with 4 additions and 4 deletions
|
|
@ -331,7 +331,7 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
|||
return isDarkMode() ? %orig(customColor) : %orig;
|
||||
}
|
||||
- (void)layoutSubviews {
|
||||
return isDarkMode() : %orig();
|
||||
%orig();
|
||||
MSHookIvar<YTTopAlignedView *>(self, "_contentView").backgroundColor = customColor;
|
||||
}
|
||||
%end
|
||||
|
|
@ -420,7 +420,7 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha:
|
|||
%end
|
||||
%hook YTShareMainView
|
||||
- (void)layoutSubviews {
|
||||
return isDarkMode() : %orig();
|
||||
%orig();
|
||||
MSHookIvar<YTQTMButton *>(self, "_cancelButton").backgroundColor = customColor;
|
||||
MSHookIvar<UIControl *>(self, "_safeArea").backgroundColor = customColor;
|
||||
}
|
||||
|
|
@ -642,7 +642,7 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||
%orig([UIColor blackColor]);
|
||||
}
|
||||
- (void)layoutSubviews {
|
||||
return isDarkMode() : %orig();
|
||||
%orig();
|
||||
if ([self.nextResponder isKindOfClass:NSClassFromString(@"YTWatchNextResultsViewController")]) {
|
||||
self.subviews[0].subviews[0].backgroundColor = [UIColor blackColor];
|
||||
}
|
||||
|
|
@ -877,7 +877,7 @@ UIColor* raisedColor = [UIColor blackColor];
|
|||
%end
|
||||
%hook YTShareMainView
|
||||
- (void)layoutSubviews {
|
||||
return isDarkMode() : %orig();
|
||||
%orig();
|
||||
MSHookIvar<YTQTMButton *>(self, "_cancelButton").backgroundColor = [UIColor blackColor];
|
||||
MSHookIvar<UIControl *>(self, "_safeArea").backgroundColor = [UIColor blackColor];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue