Revert "Encode black without alpha"

This reverts commit aea2786af7.
This commit is contained in:
M66B 2021-12-23 09:48:44 +01:00
parent 429946977b
commit 09fb38d2d3
1 changed files with 1 additions and 1 deletions

View File

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