mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-11 01:11:17 +01:00
Prevent pasting invisible text
This commit is contained in:
@@ -763,7 +763,7 @@ public class HtmlHelper {
|
||||
// Special case:
|
||||
// external draft: very dark/light font
|
||||
double lum = ColorUtils.calculateLuminance(color);
|
||||
if (dark ? lum < 1 - MIN_LUMINANCE_COMPOSE : lum > MIN_LUMINANCE_COMPOSE)
|
||||
if (lum < 1 - MIN_LUMINANCE_COMPOSE || lum > MIN_LUMINANCE_COMPOSE)
|
||||
color = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user