Fixed min compose colors

This commit is contained in:
M66B
2023-06-07 16:50:49 +02:00
parent 795ad4a2ef
commit 825c7dfb6c

View File

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