From 16d9cb7e29d150253bc73054375bc898c590a30a Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Tue, 19 May 2015 15:30:45 +0200 Subject: [PATCH] [QT] overviewpage: make sure warning icons gets colored --- src/qt/overviewpage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index a422ff9a7..2e33b9adf 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));