Skip to content

Commit 16d9cb7

Browse files
committed
[QT] overviewpage: make sure warning icons gets colored
1 parent 377711f commit 16d9cb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/qt/overviewpage.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ OverviewPage::OverviewPage(QWidget *parent) :
121121
{
122122
ui->setupUi(this);
123123

124+
// use a SingleColorIcon for the "out of sync warning" icon
125+
QIcon icon = SingleColorIcon(":/icons/warning");
126+
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)
127+
ui->labelTransactionsStatus->setIcon(icon);
128+
ui->labelWalletStatus->setIcon(icon);
129+
124130
// Recent transactions
125131
ui->listTransactions->setItemDelegate(txdelegate);
126132
ui->listTransactions->setIconSize(QSize(DECORATION_SIZE, DECORATION_SIZE));

0 commit comments

Comments
 (0)