Skip to content

Commit

Permalink
merge bitcoin-core/gui#477: Monospaced output in Console on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Oct 22, 2024
1 parent a710c94 commit a61eab9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qt/rpcconsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -950,15 +950,19 @@ void RPCConsole::clear(bool keep_prompt)
ui->lineEdit->setFocus();

// Set default style sheet
#ifdef Q_OS_MAC
ui->messagesWidget->setFont(GUIUtil::fixedPitchFont(/*use_embedded_font=*/true));
#else
ui->messagesWidget->setFont(GUIUtil::fixedPitchFont());
#endif
ui->messagesWidget->document()->setDefaultStyleSheet(
QString(
"table { }"
"td.time { " + GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_SECONDARY) + " font-size: %1pt; } "
"td.message { " + GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_PRIMARY) + " font-size: %1pt; white-space:pre-wrap; } "
"td.cmd-request, b { " + GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_COMMAND) + " } "
"td.cmd-error, .secwarning { " + GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR) + " }"
).arg(consoleFontSize)
).arg(QString("%1pt").arg(consoleFontSize))
);

static const QString welcome_message =
Expand Down

0 comments on commit a61eab9

Please sign in to comment.