Fixed transparent colors

pull/172/head
M66B 5 years ago
parent ba9c132267
commit 54d6b2b70b

@ -672,7 +672,7 @@ public class HtmlHelper {
Integer.parseInt(component[2]) / 100f}); Integer.parseInt(component[2]) / 100f});
} }
} else if (x11ColorMap.containsKey(c)) } else if (x11ColorMap.containsKey(c))
color = x11ColorMap.get(c); color = x11ColorMap.get(c) | 0xFF000000;
else else
try { try {
color = Color.parseColor(c); color = Color.parseColor(c);
@ -690,6 +690,8 @@ public class HtmlHelper {
if (color != null) { if (color != null) {
if (dark || color != Color.BLACK) if (dark || color != Color.BLACK)
color = Helper.adjustLuminance(color, dark, MIN_LUMINANCE); color = Helper.adjustLuminance(color, dark, MIN_LUMINANCE);
color &= 0xFFFFFF;
} }
return color; return color;

Loading…
Cancel
Save