]> git.lizzy.rs Git - minetest.git/commitdiff
Hypertext: Fix hovercolor not working in global tag (#9582)
authorPierre-Yves Rollo <dev@pyrollo.com>
Sun, 5 Apr 2020 13:04:41 +0000 (15:04 +0200)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2020 13:04:41 +0000 (15:04 +0200)
src/gui/guiHyperText.cpp

index 85e562dad1922e7ea41acbe8fcd644bd2822e96b..e107b5a3ebc824ff9135fb277076269ef7dbbff5 100644 (file)
@@ -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;