mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:48:45 -04:00
Remove OLED live chat fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user