Live Chat OLED dark mode

This commit is contained in:
Bryce Hackel
2024-08-09 22:44:51 -07:00
parent 753d690b78
commit ba13d1b987
2 changed files with 15 additions and 2 deletions

View File

@@ -542,11 +542,10 @@ BOOL isTabSelected = NO;
}
%end
// Hide the Comment Section Previews under the Video Player - @arichornlover
%hook _ASDisplayView
- (void)didMoveToWindow {
%orig;
// Hide the Comment Section Previews under the Video Player - @arichornlover
if ((IsEnabled(@"hidePreviewCommentSection_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.ui.comments_entry_point_teaser"])) {
self.hidden = YES;
self.opaque = YES;
@@ -558,6 +557,12 @@ BOOL isTabSelected = NO;
[self setNeedsLayout];
[self removeFromSuperview];
}
// Live chat OLED dark mode - @bhackel
if (([[YTLUserDefaults standardUserDefaults] boolForKey:@"oledTheme"] // YTLite OLED Theme
|| [[NSUserDefaults standardUserDefaults] integerForKey:@"appTheme"] == 1 // YTLitePlus OLED Theme
) && [self.accessibilityIdentifier isEqualToString:@"eml.live_chat_text_message"]) {
self.backgroundColor = [UIColor blackColor];
}
}
%end