V5 #396

Merged
bhackel merged 10 commits from v5 into main 2024-09-03 04:53:43 +00:00
Showing only changes of commit 861a9fd30b - Show all commits

View file

@ -586,16 +586,6 @@ BOOL isTabSelected = NO;
[self setNeedsLayout];
[self removeFromSuperview];
}
// Live chat OLED dark mode - @bhackel
CGFloat alpha;
if ([[%c(YTLUserDefaults) standardUserDefaults] boolForKey:@"oledTheme"] // YTLite OLED Theme
&& [self.accessibilityIdentifier isEqualToString:@"eml.live_chat_text_message"] // Live chat text message
&& [self.backgroundColor getWhite:nil alpha:&alpha] // Check if color is grayscale and get alpha
&& alpha != 0.0) // Ignore shorts live chat
{
self.backgroundColor = [UIColor blackColor];
}
}
%end