[qt] Windows: Make rpcconsole monospace font larger
Github-Pull: #7364
Rebased-From: fa6a59dd39
This commit is contained in:
parent
da83ecd454
commit
7726c487f8
|
@ -472,7 +472,11 @@ void RPCConsole::clear()
|
||||||
// Set default style sheet
|
// Set default style sheet
|
||||||
QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
|
QFontInfo fixedFontInfo(GUIUtil::fixedPitchFont());
|
||||||
// Try to make fixed font adequately large on different OS
|
// 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);
|
QString ptSize = QString("%1pt").arg(QFontInfo(QFont()).pointSize() * 8.5 / 9);
|
||||||
|
#endif
|
||||||
ui->messagesWidget->document()->setDefaultStyleSheet(
|
ui->messagesWidget->document()->setDefaultStyleSheet(
|
||||||
QString(
|
QString(
|
||||||
"table { }"
|
"table { }"
|
||||||
|
|
Loading…
Reference in New Issue