Remove OLED live chat fix

This commit is contained in:
Bryce Hackel
2024-09-01 12:27:07 -07:00
parent a3ac8e9735
commit 861a9fd30b

View File

@@ -586,16 +586,6 @@ BOOL isTabSelected = NO;
[self setNeedsLayout]; [self setNeedsLayout];
[self removeFromSuperview]; [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 %end