mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Document special case
This commit is contained in:
parent
e004228529
commit
576388ee16
1 changed files with 2 additions and 0 deletions
|
@ -602,6 +602,8 @@ public class HtmlHelper {
|
||||||
e = e.parent();
|
e = e.parent();
|
||||||
|
|
||||||
if (!bg) {
|
if (!bg) {
|
||||||
|
// Special case:
|
||||||
|
// external draft / dark background / dark font
|
||||||
if (color != null && !view && dark) {
|
if (color != null && !view && dark) {
|
||||||
float lum = (float) ColorUtils.calculateLuminance(color);
|
float lum = (float) ColorUtils.calculateLuminance(color);
|
||||||
if (lum < 0.1f)
|
if (lum < 0.1f)
|
||||||
|
|
Loading…
Reference in a new issue