Skip to content

Commit 7abe7bb

Browse files
luke-jrjonasschnelli
authored andcommitted
Qt/Send: Give fallback fee a reasonable indent
1 parent 3e4d7bf commit 7abe7bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/sendcoinsdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "txmempool.h"
2323
#include "wallet/wallet.h"
2424

25+
#include <QFontMetrics>
2526
#include <QMessageBox>
2627
#include <QScrollBar>
2728
#include <QSettings>
@@ -659,6 +660,7 @@ void SendCoinsDialog::updateSmartFeeLabel()
659660
int lightness = ui->fallbackFeeWarningLabel->palette().color(QPalette::WindowText).lightness();
660661
QColor warning_colour(255 - (lightness / 5), 176 - (lightness / 3), 48 - (lightness / 14));
661662
ui->fallbackFeeWarningLabel->setStyleSheet("QLabel { color: " + warning_colour.name() + "; }");
663+
ui->fallbackFeeWarningLabel->setIndent(QFontMetrics(ui->fallbackFeeWarningLabel->font()).width("x"));
662664
}
663665
else
664666
{

0 commit comments

Comments
 (0)