Support for Promo View

This commit is contained in:
arichorn 2023-08-11 04:35:46 -05:00 committed by GitHub
parent 6ba4426180
commit 0d3ab04bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -937,6 +937,7 @@ static void replaceTab(YTIGuideResponse *response) {
- (void)didMoveToWindow {
%orig;
if (isDarkMode()) {
if ([self.accessibilityIdentifier isEqualToString:@"brand.promo_view"]) self.superview.backgroundColor = [UIColor colorWithRed: 0.13 green: 0.13 blue: 0.13 alpha: 1.00];
if ([self.accessibilityIdentifier isEqualToString:@"id.ui.comment_cell"]) self.backgroundColor = [UIColor colorWithRed: 0.09 green: 0.09 blue: 0.09 alpha: 1.00];
if ([self.accessibilityIdentifier isEqualToString:@"id.elements.components.comment_composer"]) self.backgroundColor = [UIColor colorWithRed: 0.09 green: 0.09 blue: 0.09 alpha: 1.00];
if ([self.accessibilityIdentifier isEqualToString:@"id.comment.guidelines_text"]) self.superview.backgroundColor = [UIColor colorWithRed: 0.09 green: 0.09 blue: 0.09 alpha: 1.00];