@@ -78,6 +78,7 @@ class TxViewDelegate : public QAbstractItemDelegate
78
78
{
79
79
QIcon iconWatchonly = qvariant_cast<QIcon>(index.data (TransactionTableModel::WatchonlyDecorationRole));
80
80
QRect watchonlyRect (boundingRect.right () + 5 , mainRect.top ()+ypad+halfheight, 16 , halfheight);
81
+ iconWatchonly = platformStyle->TextColorIcon (iconWatchonly);
81
82
iconWatchonly.paint (painter, watchonlyRect);
82
83
address_rect_min_width += 5 + watchonlyRect.width ();
83
84
}
@@ -143,14 +144,15 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
143
144
ui(new Ui::OverviewPage),
144
145
clientModel(nullptr ),
145
146
walletModel(nullptr ),
147
+ m_platform_style{platformStyle},
146
148
txdelegate (new TxViewDelegate(platformStyle, this ))
147
149
{
148
150
ui->setupUi (this );
149
151
150
152
m_balances.balance = -1 ;
151
153
152
154
// use a SingleColorIcon for the "out of sync warning" icon
153
- QIcon icon = platformStyle ->SingleColorIcon (" :/icons/warning" );
155
+ QIcon icon = m_platform_style ->SingleColorIcon (QStringLiteral ( " :/icons/warning" ) );
154
156
ui->labelTransactionsStatus ->setIcon (icon);
155
157
ui->labelWalletStatus ->setIcon (icon);
156
158
@@ -298,6 +300,17 @@ void OverviewPage::setWalletModel(WalletModel *model)
298
300
updateDisplayUnit ();
299
301
}
300
302
303
+ void OverviewPage::changeEvent (QEvent* e)
304
+ {
305
+ #ifdef Q_OS_MACOS
306
+ if (e->type () == QEvent::PaletteChange) {
307
+ QIcon icon = m_platform_style->SingleColorIcon (QStringLiteral (" :/icons/warning" ));
308
+ ui->labelTransactionsStatus ->setIcon (icon);
309
+ ui->labelWalletStatus ->setIcon (icon);
310
+ }
311
+ #endif
312
+ }
313
+
301
314
void OverviewPage::updateDisplayUnit ()
302
315
{
303
316
if (walletModel && walletModel->getOptionsModel ())
0 commit comments