mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Prevent transparent black
This commit is contained in:
parent
f90f143b11
commit
486ccfa5f3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue