Skip to content

Commit 5205b61

Browse files
committed
fix: wrap the whole text in a global span to control its styling properly
1 parent 01f74a2 commit 5205b61

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ bool SendCoinsDialog::send(const QList<SendCoinsRecipient>& recipients, QString&
362362
formatted_short.erase(formatted_short.begin() + MAX_SEND_POPUP_ENTRIES, formatted_short.end());
363363
}
364364

365+
// Wrap the whole text in a global span to control its styling properly
366+
question_string.append("<span style='font-weight:normal;'>");
367+
365368
/*: Message displayed when attempting to create a transaction. Cautionary text to prompt the user to verify
366369
that the displayed transaction details represent the transaction the user intends to create. */
367370
question_string.append(tr("Do you want to create this transaction?"));
@@ -463,6 +466,9 @@ bool SendCoinsDialog::send(const QList<SendCoinsRecipient>& recipients, QString&
463466
question_string.append(QString("<br /><span style='font-size:10pt; font-weight:normal;'>(=%1)</span>")
464467
.arg(alternativeUnits.join(" " + tr("or") + " ")));
465468

469+
// Close the global span we opened at the very beginning
470+
question_string.append("</span>");
471+
466472
if (formatted.size() > 1) {
467473
informative_text = tr("To review recipient list click \"Show Details…\"");
468474
detailed_text = formatted.join("\n\n");

0 commit comments

Comments
 (0)