Discard dark colors / dark background for drafts

pull/196/head
M66B 4 years ago
parent c44c232d88
commit fecd64c25c

@ -543,6 +543,13 @@ public class HtmlHelper {
continue;
Integer color = parseColor(value);
if (color != null && !view && Helper.isDarkTheme(context)) {
float lum = (float) ColorUtils.calculateLuminance(color);
if (lum < 0.1f)
color = null;
}
if (color == null)
element.removeAttr("color");
else {

Loading…
Cancel
Save