ui: force Total label to true bold (font-weight: 900)

The v6.1.6 conditional Total color shipped with font: 12pt bold,
which Qt interprets as font-weight 75 (medium-bold). That's the
codebase's existing convention for setStyleSheet bold labels
(trianglesgui.cpp uses 'font-weight: bold' for the Tor/I2P status
indicators) but it's not visually distinct against the label font.

Bump to font: 900 12pt (font-weight 900, full bold) so the Total
actually stands out as the headline number on the Overview panel.

No other behavior changed. Just font weight.
This commit is contained in:
Sami Ahmed
2026-07-08 16:54:55 -07:00
parent 42a6b11ac6
commit 290970097e
+2 -2
View File
@@ -156,8 +156,8 @@ void OverviewPage::setBalance(qint64 balance, qint64 stake, qint64 unconfirmedBa
// Total: green when there are coins, red when empty. C++ owns the color // Total: green when there are coins, red when empty. C++ owns the color
// (stylesheet can't do conditional logic), so the rule is applied every time // (stylesheet can't do conditional logic), so the rule is applied every time
// the balance updates. // the balance updates.
ui->labelTotal->setStyleSheet(total > 0 ? QStringLiteral("color: #7CDB8A; font: 12pt bold;") ui->labelTotal->setStyleSheet(total > 0 ? QStringLiteral("color: #7CDB8A; font: 900 12pt;")
: QStringLiteral("color: #e32105; font: 12pt bold;")); : QStringLiteral("color: #e32105; font: 900 12pt;"));
// only show immature (newly mined) balance if it's non-zero, so as not to complicate things // only show immature (newly mined) balance if it's non-zero, so as not to complicate things
// for the non-mining users // for the non-mining users