aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2016-01-17 17:55:53 +0100
committerMarcoFalke <[email protected]>2016-01-17 19:28:49 +0100
commitfa6a59dd397e62e850fc57df05cd6d117fbdcd82 (patch)
tree807485a00bdffcc82480c6807ad33bb31098c15d /src
parentMerge pull request #7158 (diff)
downloaddiscoin-fa6a59dd397e62e850fc57df05cd6d117fbdcd82.tar.xz
discoin-fa6a59dd397e62e850fc57df05cd6d117fbdcd82.zip
[qt] Windows: Make rpcconsole monospace font larger
Diffstat (limited to 'src')
-rw-r--r--src/qt/rpcconsole.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 30e551de1..cc377c4ff 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -472,7 +472,11 @@ void RPCConsole::clear()
// Set default style sheet
QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
// Try to make fixed font adequately large on different OS
+#ifdef WIN32
+ QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 10 / 8);
+#else
QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 8.5 / 9);
+#endif
ui->messagesWidget->document()->setDefaultStyleSheet(
QString(
"table { }"