improvements

This commit is contained in:
qnblackcat 2022-11-30 21:16:59 +07:00
parent dc53dd2578
commit 90cd7cd3dd

View file

@ -630,7 +630,7 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
- (void)didMoveToWindow {
%orig;
if (isDarkMode()) {
self.subviews[0].backgroundColor = [UIColor blackColor];
self.subviews[0].backgroundColor = [UIColor clearColor];
}
}
%end
@ -745,6 +745,16 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
}
%end
//
%hook YTBackstageCreateRepostDetailView
- (void)setBackgroundColor:(UIColor *)color {
if (isDarkMode()) {
return %orig([UIColor blackColor]);
}
return %orig;
}
%end
// Others
%hook _ASDisplayView
- (void)didMoveToWindow {