Prevent transparent black

This commit is contained in:
M66B 2022-10-05 20:46:01 +02:00
parent f90f143b11
commit 486ccfa5f3
1 changed files with 1 additions and 1 deletions

View File

@ -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);