aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2020-04-05 15:04:41 +0200
committerGitHub <noreply@github.com>2020-04-05 15:04:41 +0200
commit0eb3072819e500ea6cc70c7031079472ec2ea569 (patch)
treeffefdbe5eb6f52d40bb9ff3d0b2228e4c000c03c
parentea30b89d3fcaf599a4d4c4e2f12f01a1d59f1072 (diff)
downloadminetest-0eb3072819e500ea6cc70c7031079472ec2ea569.tar.gz
minetest-0eb3072819e500ea6cc70c7031079472ec2ea569.tar.bz2
minetest-0eb3072819e500ea6cc70c7031079472ec2ea569.zip
Hypertext: Fix hovercolor not working in global tag (#9582)
-rw-r--r--src/gui/guiHyperText.cpp3
1 files changed, 1 insertions, 2 deletions
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;