fix spaces/monospace fonts in qt console

This commit is contained in:
UdjinM6 2015-03-01 22:42:57 +03:00
parent 2d3426755c
commit 54a78ed036
2 changed files with 2 additions and 1 deletions

View File

@ -227,6 +227,7 @@ QString HtmlEscape(const QString& str, bool fMultiLine)
#else
QString escaped = str.toHtmlEscaped();
#endif
escaped = escaped.replace(" ", " ");
if(fMultiLine)
{
escaped = escaped.replace("\n", "<br>\n");

View File

@ -324,7 +324,7 @@ void RPCConsole::clear()
ui->messagesWidget->document()->setDefaultStyleSheet(
"table { }"
"td.time { color: #808080; padding-top: 3px; } "
"td.message { font-family: monospace; font-size: 12px; } " // Todo: Remove fixed font-size
"td.message { font-family: Courier, Courier New, Lucida Console, monospace; font-size: 12px; } " // Todo: Remove fixed font-size
"td.cmd-request { color: #006060; } "
"td.cmd-error { color: red; } "
"b { color: #006060; } "