Changeset View
Changeset View
Standalone View
Standalone View
src/qt/rpcconsole.cpp
Show First 20 Lines • Show All 801 Lines • ▼ Show 20 Lines | ui->messagesWidget->document()->setDefaultStyleSheet( | ||||
"td.message { font-family: %1; font-size: %2; " | "td.message { font-family: %1; font-size: %2; " | ||||
"white-space:pre-wrap; } " | "white-space:pre-wrap; } " | ||||
"td.cmd-request { color: #006060; } " | "td.cmd-request { color: #006060; } " | ||||
"td.cmd-error { color: red; } " | "td.cmd-error { color: red; } " | ||||
".secwarning { color: red; }" | ".secwarning { color: red; }" | ||||
"b { color: #006060; } ") | "b { color: #006060; } ") | ||||
.arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize))); | .arg(fixedFontInfo.family(), QString("%1pt").arg(consoleFontSize))); | ||||
#ifdef Q_OS_MAC | |||||
QString clsKey = "(⌘)-L"; | |||||
#else | |||||
QString clsKey = "Ctrl-L"; | |||||
#endif | |||||
message(CMD_REPLY, | message(CMD_REPLY, | ||||
(tr("Welcome to the %1 RPC console.").arg(tr(PACKAGE_NAME)) + | (tr("Welcome to the %1 RPC console.").arg(tr(PACKAGE_NAME)) + | ||||
"<br>" + tr("Use up and down arrows to navigate history, and " | "<br>" + | ||||
"<b>Ctrl-L</b> to clear screen.") + | tr("Use up and down arrows to navigate history, and " | ||||
"%1 to clear screen.") | |||||
.arg("<b>" + clsKey + "</b>") + | |||||
"<br>" + | "<br>" + | ||||
tr("Type <b>help</b> for an overview of available commands.")) + | tr("Type <b>help</b> for an overview of available commands.")) + | ||||
"<br><span class=\"secwarning\">" + | "<br><span class=\"secwarning\">" + | ||||
tr("WARNING: Scammers have been active, telling users to type " | tr("WARNING: Scammers have been active, telling users to type " | ||||
"commands here, stealing their wallet contents. Do not use " | "commands here, stealing their wallet contents. Do not use " | ||||
"this console without fully understanding the ramification " | "this console without fully understanding the ramification " | ||||
"of a command.") + | "of a command.") + | ||||
"</span>", | "</span>", | ||||
▲ Show 20 Lines • Show All 458 Lines • Show Last 20 Lines |