Colorize people names in About screen
authorWuzzy <Wuzzy2@mail.ru>
Fri, 14 Dec 2018 00:28:31 +0100
changeset 14459 1bfb50187286
parent 14458 cef0bb953ddf
child 14460 05de066ab212
Colorize people names in About screen
QTfrontend/ui/widget/about.cpp
--- a/QTfrontend/ui/widget/about.cpp	Fri Dec 14 00:16:05 2018 +0100
+++ b/QTfrontend/ui/widget/about.cpp	Fri Dec 14 00:28:31 2018 +0100
@@ -173,6 +173,10 @@
             else if(type == "E")
             {
                 QString showName = QString("");
+                if(!name.isEmpty())
+                    name = "<span class=\"name\">"+name+"</span>";
+                if(!nick.isEmpty())
+                    nick= "<span class=\"nick\">"+nick+"</span>";
                 if(!name.isEmpty() && !nick.isEmpty())
                     showName = tr("%1 (alias %2)").arg(name).arg(nick);
                 else if(name.isEmpty() && !nick.isEmpty())
@@ -288,8 +292,9 @@
         "<style type=\"text/css\">"
         "     body { color: orange; }"
         "     a { color: #ffe270; }"
-        "     a:hover { color: yellow; }"
         "     ul { list-style-type: none; }"
+        "     .name { color: #ffffff; font-weight: bold; }"
+        "     .nick { color: #00ff00; font-weight: bold; }"
         "</style>"
         "</head>"
         "<body>"