fix spaces/monospace fonts in qt console
This commit is contained in:
parent
2d3426755c
commit
54a78ed036
@ -227,6 +227,7 @@ QString HtmlEscape(const QString& str, bool fMultiLine)
|
|||||||
#else
|
#else
|
||||||
QString escaped = str.toHtmlEscaped();
|
QString escaped = str.toHtmlEscaped();
|
||||||
#endif
|
#endif
|
||||||
|
escaped = escaped.replace(" ", " ");
|
||||||
if(fMultiLine)
|
if(fMultiLine)
|
||||||
{
|
{
|
||||||
escaped = escaped.replace("\n", "<br>\n");
|
escaped = escaped.replace("\n", "<br>\n");
|
||||||
|
@ -324,7 +324,7 @@ void RPCConsole::clear()
|
|||||||
ui->messagesWidget->document()->setDefaultStyleSheet(
|
ui->messagesWidget->document()->setDefaultStyleSheet(
|
||||||
"table { }"
|
"table { }"
|
||||||
"td.time { color: #808080; padding-top: 3px; } "
|
"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-request { color: #006060; } "
|
||||||
"td.cmd-error { color: red; } "
|
"td.cmd-error { color: red; } "
|
||||||
"b { color: #006060; } "
|
"b { color: #006060; } "
|
||||||
|
Loading…
Reference in New Issue
Block a user