Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
- index a7b60e2..5f3e026 100644
- --- a/src/qt/rpcconsole.cpp
- +++ b/src/qt/rpcconsole.cpp
- @@ -461,20 +461,16 @@ void RPCConsole::clear()
- platformStyle->SingleColorImage(ICON_MAPPING[i].source).scaled(ICON_SIZE, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
- }
- - // Set default style sheet
- - QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
- - // Try to make font equally large on different OS.
- - // ptSize should equal to 10pt on most systems.
- QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize());
- ui->messagesWidget->document()->setDefaultStyleSheet(
- QString(
- "table { }"
- "td.time { color: #808080; padding-top: 3px; } "
- - "td.message { font-family: %1; font-size: %2; white-space:pre-wrap; } "
- + "td.message { } "
- "td.cmd-request { color: #006060; } "
- "td.cmd-error { color: red; } "
- "b { color: #006060; } "
- - ).arg(fixedFontInfo.family(), ptSize)
- + )
- );
- message(CMD_REPLY, (tr("Welcome to the Bitcoin Core RPC console.") + "<br>" +
- @@ -497,12 +493,12 @@ void RPCConsole::message(int category, const QString &message, bool html)
- QString out;
- out += "<table><tr><td class=\"time\" width=\"65\">" + timeString + "</td>";
- out += "<td class=\"icon\" width=\"32\"><img src=\"" + categoryClass(category) + "\"></td>";
- - out += "<td class=\"message " + categoryClass(category) + "\" valign=\"middle\">";
- + out += "<td class=\"message " + categoryClass(category) + "\" valign=\"middle\"><pre>";
- if(html)
- out += message;
- else
- out += GUIUtil::HtmlEscape(message, false);
- - out += "</td></tr></table>";
- + out += "</pre></td></tr></table>";
- ui->messagesWidget->append(out);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement