Prevent transparent black

pull/209/head
M66B 2 years ago
parent f90f143b11
commit 486ccfa5f3

@ -2084,7 +2084,7 @@ public class HtmlHelper {
static String encodeWebColor(int color) {
int alpha = Color.alpha(color);
int rgb = 0xFFFFFF & color;
if (alpha == 255)
if (alpha == 255 || color == 0)
return String.format("#%06X", rgb);
else
return String.format("#%06X%02X", rgb, alpha);

Loading…
Cancel
Save