diff options
| author | Jonas Schnelli <[email protected]> | 2016-01-22 09:47:30 +0100 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2016-01-22 09:47:51 +0100 |
| commit | f221fc1887def9dfb5a3cd7cfa2d27accd35a1d3 (patch) | |
| tree | ef648109b7146584f0ee28b2b5ebdec571c68ed0 /src | |
| parent | Merge #7386: Add option `-permitrbf` to set transaction replacement policy (diff) | |
| parent | [qt] Windows: Make rpcconsole monospace font larger (diff) | |
| download | discoin-f221fc1887def9dfb5a3cd7cfa2d27accd35a1d3.tar.xz discoin-f221fc1887def9dfb5a3cd7cfa2d27accd35a1d3.zip | |
Merge #7364: [qt] Windows: Make rpcconsole monospace font larger
fa6a59d [qt] Windows: Make rpcconsole monospace font larger (MarcoFalke)
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/rpcconsole.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 7178bc00e..fb3602031 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -474,7 +474,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 { }" |