aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-05-20 13:20:06 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-05-20 13:21:01 +0200
commit0d862c2739b96005fdf0e2a4df347e7291956fc1 (patch)
treeab4fae8e3ad506f1539bc74c1d96b4f6c050e87a /src
parent180c164e4febc67ccb1e08b84593d5f368c31e31 (diff)
parent16d9cb7e29d150253bc73054375bc898c590a30a (diff)
downloadbitcoin-0d862c2739b96005fdf0e2a4df347e7291956fc1.tar.xz
Merge pull request #6160
16d9cb7 [QT] overviewpage: make sure warning icons gets colored (Jonas Schnelli)
Diffstat (limited to 'src')
-rw-r--r--src/qt/overviewpage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index a422ff9a71..2e33b9adf8 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -121,6 +121,12 @@ OverviewPage::OverviewPage(QWidget *parent) :
{
ui->setupUi(this);
+ // use a SingleColorIcon for the "out of sync warning" icon
+ QIcon icon = SingleColorIcon(":/icons/warning");
+ icon.addPixmap(icon.pixmap(QSize(64,64), QIcon::Normal), QIcon::Disabled); // also set the disabled icon because we are using a disabled QPushButton to work around missing HiDPI support of QLabel (https://bugreports.qt.io/browse/QTBUG-42503)
+ ui->labelTransactionsStatus->setIcon(icon);
+ ui->labelWalletStatus->setIcon(icon);
+
// Recent transactions
ui->listTransactions->setItemDelegate(txdelegate);
ui->listTransactions->setIconSize(QSize(DECORATION_SIZE, DECORATION_SIZE));