1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 06:31:17 +00:00

Document special case

This commit is contained in:
M66B 2021-07-05 16:35:47 +02:00
parent e004228529
commit 576388ee16

View file

@ -602,6 +602,8 @@ public class HtmlHelper {
e = e.parent();
if (!bg) {
// Special case:
// external draft / dark background / dark font
if (color != null && !view && dark) {
float lum = (float) ColorUtils.calculateLuminance(color);
if (lum < 0.1f)