Fixed min compose colors

pull/212/head
M66B 2 years ago
parent 795ad4a2ef
commit 825c7dfb6c

@ -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;
}

Loading…
Cancel
Save