Merge pull request #213 from UdjinM6/v0.11.2.x_fix_monospace_qt_console

V0.11.2.x fix spaces/monospace fonts in qt console
This commit is contained in:
evan82 2015-03-01 19:08:12 -07:00
commit 8faca60382
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; } "