udpate uYouPlus.xm

This commit is contained in:
qnblackcat
2022-09-17 10:20:24 +07:00
parent 4a5f1dae69
commit 8b95b82492
+4 -3
View File
@@ -748,6 +748,7 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
- (void)didMoveToWindow { - (void)didMoveToWindow {
%orig; %orig;
if (isDarkMode()) { if (isDarkMode()) {
self.backgroundColor = raisedColor;
self.subviews[1].backgroundColor = raisedColor; self.subviews[1].backgroundColor = raisedColor;
self.superview.backgroundColor = raisedColor; self.superview.backgroundColor = raisedColor;
} }
@@ -887,15 +888,15 @@ static void replaceTab(YTIGuideResponse *response) {
%init(Main); %init(Main);
} }
if (hidePreviousAndNextButton()) { if (hidePreviousAndNextButton()) {
%init(gHidePreviousAndNextButton); %init(gHidePreviousAndNextButton);
} }
if (replacePreviousAndNextButton()) { if (replacePreviousAndNextButton()) {
%init(gReplacePreviousAndNextButton); %init(gReplacePreviousAndNextButton);
} }
if (@available(iOS 16, *)) { if (@available(iOS 16, *)) {
%init(iOS16); %init(iOS16);
} }
if (!fixGoogleSigin()) { if (!fixGoogleSigin()) {
%init(gDevice_challenge_request_hack); %init(gDevice_challenge_request_hack);
} }
} }