mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Debug: strike through transparent text
This commit is contained in:
parent
dff669cdad
commit
ad801095ad
1 changed files with 9 additions and 0 deletions
|
@ -633,6 +633,12 @@ public class HtmlHelper {
|
||||||
|
|
||||||
Integer color = parseColor(value);
|
Integer color = parseColor(value);
|
||||||
|
|
||||||
|
if (color != null && color == Color.TRANSPARENT) {
|
||||||
|
if (BuildConfig.DEBUG)
|
||||||
|
sb.append("text-decoration:line-through;");
|
||||||
|
color = null;
|
||||||
|
}
|
||||||
|
|
||||||
if ("color".equals(key)) {
|
if ("color".equals(key)) {
|
||||||
Integer bg = null;
|
Integer bg = null;
|
||||||
if (background_color) {
|
if (background_color) {
|
||||||
|
@ -1763,6 +1769,9 @@ public class HtmlHelper {
|
||||||
if (TextUtils.isEmpty(value))
|
if (TextUtils.isEmpty(value))
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
if ("transparent".equals(value))
|
||||||
|
return Color.TRANSPARENT;
|
||||||
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
|
||||||
String c = value
|
String c = value
|
||||||
.replace("null", "")
|
.replace("null", "")
|
||||||
|
|
Loading…
Reference in a new issue