mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 23:56:07 +02:00
Fixed min compose colors
This commit is contained in:
@@ -769,7 +769,7 @@ public class HtmlHelper {
|
||||
// Special case:
|
||||
// external draft: very dark/light font
|
||||
double lum = ColorUtils.calculateLuminance(color);
|
||||
if (lum < 1 - MIN_LUMINANCE_COMPOSE || lum > MIN_LUMINANCE_COMPOSE)
|
||||
if (dark ? lum < 1 - MIN_LUMINANCE_COMPOSE : lum > MIN_LUMINANCE_COMPOSE)
|
||||
color = null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user