Browse Source

Qt/Send: Give fallback fee a reasonable indent

0.15
Luke Dashjr 8 years ago committed by Jonas Schnelli
parent
commit
7abe7bbf61
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 2
      src/qt/sendcoinsdialog.cpp

2
src/qt/sendcoinsdialog.cpp

@ -22,6 +22,7 @@ @@ -22,6 +22,7 @@
#include "txmempool.h"
#include "wallet/wallet.h"
#include <QFontMetrics>
#include <QMessageBox>
#include <QScrollBar>
#include <QSettings>
@ -659,6 +660,7 @@ void SendCoinsDialog::updateSmartFeeLabel() @@ -659,6 +660,7 @@ void SendCoinsDialog::updateSmartFeeLabel()
int lightness = ui->fallbackFeeWarningLabel->palette().color(QPalette::WindowText).lightness();
QColor warning_colour(255 - (lightness / 5), 176 - (lightness / 3), 48 - (lightness / 14));
ui->fallbackFeeWarningLabel->setStyleSheet("QLabel { color: " + warning_colour.name() + "; }");
ui->fallbackFeeWarningLabel->setIndent(QFontMetrics(ui->fallbackFeeWarningLabel->font()).width("x"));
}
else
{

Loading…
Cancel
Save