From: Pierre-Yves Rollo Date: Sun, 5 Apr 2020 13:04:41 +0000 (+0200) Subject: Hypertext: Fix hovercolor not working in global tag (#9582) X-Git-Tag: 5.2.0~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0eb3072819e500ea6cc70c7031079472ec2ea569;p=oweals%2Fminetest.git Hypertext: Fix hovercolor not working in global tag (#9582) --- diff --git a/src/gui/guiHyperText.cpp b/src/gui/guiHyperText.cpp index 85e562dad..e107b5a3e 100644 --- a/src/gui/guiHyperText.cpp +++ b/src/gui/guiHyperText.cpp @@ -107,7 +107,7 @@ ParsedText::ParsedText(const wchar_t *text) m_root_tag.style["underline"] = "false"; m_root_tag.style["halign"] = "left"; 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_style = m_root_tag.style; @@ -115,7 +115,6 @@ ParsedText::ParsedText(const wchar_t *text) // Default simple tags definitions StyleList style; - style["hovercolor"] = "#FF0000"; style["color"] = "#0000FF"; style["underline"] = "true"; m_elementtags["action"] = style;