mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-26 07:53:12 +00:00
Fixed transparent colors
This commit is contained in:
parent
ba9c132267
commit
54d6b2b70b
1 changed files with 3 additions and 1 deletions
|
@ -672,7 +672,7 @@ public class HtmlHelper {
|
|||
Integer.parseInt(component[2]) / 100f});
|
||||
}
|
||||
} else if (x11ColorMap.containsKey(c))
|
||||
color = x11ColorMap.get(c);
|
||||
color = x11ColorMap.get(c) | 0xFF000000;
|
||||
else
|
||||
try {
|
||||
color = Color.parseColor(c);
|
||||
|
@ -690,6 +690,8 @@ public class HtmlHelper {
|
|||
if (color != null) {
|
||||
if (dark || color != Color.BLACK)
|
||||
color = Helper.adjustLuminance(color, dark, MIN_LUMINANCE);
|
||||
|
||||
color &= 0xFFFFFF;
|
||||
}
|
||||
|
||||
return color;
|
||||
|
|
Loading…
Reference in a new issue