Advertisement
Guest User

Untitled

a guest
Oct 27th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.98 KB | None | 0 0
  1. diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
  2. index a7b60e2..d332ebe 100644
  3. --- a/src/qt/rpcconsole.cpp
  4. +++ b/src/qt/rpcconsole.cpp
  5. @@ -461,20 +461,17 @@ void RPCConsole::clear()
  6.                      platformStyle->SingleColorImage(ICON_MAPPING[i].source).scaled(ICON_SIZE, Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
  7.      }
  8.  
  9. -    // Set default style sheet
  10. -    QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
  11. -    // Try to make font equally large on different OS.
  12. -    // ptSize should equal to 10pt on most systems.
  13.      QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize());
  14.      ui->messagesWidget->document()->setDefaultStyleSheet(
  15.          QString(
  16.                  "table { }"
  17.                  "td.time { color: #808080; padding-top: 3px; } "
  18. -                "td.message { font-family: %1; font-size: %2; white-space:pre-wrap; } "
  19. +                "td.message { } "
  20. +                "td.message pre { white-space: pre-wrap; } "
  21.                  "td.cmd-request { color: #006060; } "
  22.                  "td.cmd-error { color: red; } "
  23.                  "b { color: #006060; } "
  24. -            ).arg(fixedFontInfo.family(), ptSize)
  25. +            )
  26.          );
  27.  
  28.      message(CMD_REPLY, (tr("Welcome to the Bitcoin Core RPC console.") + "<br>" +
  29. @@ -497,12 +494,12 @@ void RPCConsole::message(int category, const QString &message, bool html)
  30.      QString out;
  31.      out += "<table><tr><td class=\"time\" width=\"65\">" + timeString + "</td>";
  32.      out += "<td class=\"icon\" width=\"32\"><img src=\"" + categoryClass(category) + "\"></td>";
  33. -    out += "<td class=\"message " + categoryClass(category) + "\" valign=\"middle\">";
  34. +    out += "<td class=\"message " + categoryClass(category) + "\" valign=\"middle\"><pre>";
  35.      if(html)
  36.          out += message;
  37.      else
  38.          out += GUIUtil::HtmlEscape(message, false);
  39. -    out += "</td></tr></table>";
  40. +    out += "</pre></td></tr></table>";
  41.      ui->messagesWidget->append(out);
  42.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement