Hypertext: Fix hovercolor not working in global tag (#9582)

This commit is contained in:
Pierre-Yves Rollo 2020-04-05 15:04:41 +02:00 committed by GitHub
parent ea30b89d3f
commit 0eb3072819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -107,7 +107,7 @@ ParsedText::ParsedText(const wchar_t *text)
m_root_tag.style["underline"] = "false"; m_root_tag.style["underline"] = "false";
m_root_tag.style["halign"] = "left"; m_root_tag.style["halign"] = "left";
m_root_tag.style["color"] = "#EEEEEE"; m_root_tag.style["color"] = "#EEEEEE";
m_root_tag.style["hovercolor"] = m_root_tag.style["color"]; m_root_tag.style["hovercolor"] = "#FF0000";
m_active_tags.push_front(&m_root_tag); m_active_tags.push_front(&m_root_tag);
m_style = m_root_tag.style; m_style = m_root_tag.style;
@ -115,7 +115,6 @@ ParsedText::ParsedText(const wchar_t *text)
// Default simple tags definitions // Default simple tags definitions
StyleList style; StyleList style;
style["hovercolor"] = "#FF0000";
style["color"] = "#0000FF"; style["color"] = "#0000FF";
style["underline"] = "true"; style["underline"] = "true";
m_elementtags["action"] = style; m_elementtags["action"] = style;