From f38e5e8877ceea4a8ee52f04a2ac352edc3ba744 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Tue, 5 Jan 2016 20:23:11 +0200 Subject: [PATCH] Changed: UL list style type depending on nested depth --- code/nel/src/gui/group_html.cpp | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index da5e89bc7..d80a59266 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -1917,7 +1917,12 @@ namespace NLGUI } break; case HTML_UL: - _UL.push_back(HTMLOListElement(1, "disc")); + if (_UL.empty()) + _UL.push_back(HTMLOListElement(1, "disc")); + else if (_UL.size() == 1) + _UL.push_back(HTMLOListElement(1, "circle")); + else + _UL.push_back(HTMLOListElement(1, "square")); // if LI is already present _LI = _UL.size() > 1; _Indent += ULIndent; @@ -5512,6 +5517,16 @@ namespace NLGUI // (ucchar)0x2219; ret = "\xe2\x88\x99 "; } + else if (Type == "circle") + { + // (uchar)0x26AA; + ret = "\xe2\x9a\xaa "; + } + else if (Type == "square") + { + // (ucchar)0x25AA; + ret = "\xe2\x96\xaa "; + } else if (Type == "a" || Type == "A") { // @see toAlphabeticOrNumeric in WebKit