Permalink
Browse files

Qt/Send: Give fallback fee a reasonable indent

  • Loading branch information...
1 parent 3e4d7bf commit 7abe7bbf61d90dc003647f2cc5019e4652182399 @luke-jr luke-jr committed with jonasschnelli Feb 17, 2017
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/qt/sendcoinsdialog.cpp
@@ -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()
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
{

0 comments on commit 7abe7bb

Please sign in to comment.