@@ -150,8 +150,8 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
150
150
frameBlocksLayout->setContentsMargins (3 ,0 ,3 ,0 );
151
151
frameBlocksLayout->setSpacing (3 );
152
152
unitDisplayControl = new UnitDisplayStatusBarControl (platformStyle);
153
- labelWalletEncryptionIcon = new QLabel ( );
154
- labelWalletHDStatusIcon = new QLabel ( );
153
+ labelWalletEncryptionIcon = new GUIUtil::ThemedLabel (platformStyle );
154
+ labelWalletHDStatusIcon = new GUIUtil::ThemedLabel (platformStyle );
155
155
labelProxyIcon = new GUIUtil::ClickableLabel ();
156
156
connectionsControl = new GUIUtil::ClickableLabel ();
157
157
labelBlocksIcon = new GUIUtil::ClickableLabel ();
@@ -1266,7 +1266,7 @@ bool BitcoinGUI::handlePaymentRequest(const SendCoinsRecipient& recipient)
1266
1266
1267
1267
void BitcoinGUI::setHDStatus (bool privkeyDisabled, int hdEnabled)
1268
1268
{
1269
- labelWalletHDStatusIcon->setPixmap (platformStyle-> SingleColorIcon ( privkeyDisabled ? " :/icons/eye" : hdEnabled ? " :/icons/hd_enabled" : " :/icons/hd_disabled" ). pixmap ( STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE) );
1269
+ labelWalletHDStatusIcon->setThemedPixmap ( privkeyDisabled ? QStringLiteral ( " :/icons/eye" ) : hdEnabled ? QStringLiteral ( " :/icons/hd_enabled" ) : QStringLiteral ( " :/icons/hd_disabled" ), STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
1270
1270
labelWalletHDStatusIcon->setToolTip (privkeyDisabled ? tr (" Private key <b>disabled</b>" ) : hdEnabled ? tr (" HD key generation is <b>enabled</b>" ) : tr (" HD key generation is <b>disabled</b>" ));
1271
1271
labelWalletHDStatusIcon->show ();
1272
1272
// eventually disable the QLabel to set its opacity to 50%
@@ -1285,15 +1285,15 @@ void BitcoinGUI::setEncryptionStatus(int status)
1285
1285
break ;
1286
1286
case WalletModel::Unlocked:
1287
1287
labelWalletEncryptionIcon->show ();
1288
- labelWalletEncryptionIcon->setPixmap (platformStyle-> SingleColorIcon (" :/icons/lock_open" ). pixmap ( STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE) );
1288
+ labelWalletEncryptionIcon->setThemedPixmap ( QStringLiteral (" :/icons/lock_open" ), STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
1289
1289
labelWalletEncryptionIcon->setToolTip (tr (" Wallet is <b>encrypted</b> and currently <b>unlocked</b>" ));
1290
1290
encryptWalletAction->setChecked (true );
1291
1291
changePassphraseAction->setEnabled (true );
1292
1292
encryptWalletAction->setEnabled (false );
1293
1293
break ;
1294
1294
case WalletModel::Locked:
1295
1295
labelWalletEncryptionIcon->show ();
1296
- labelWalletEncryptionIcon->setPixmap (platformStyle-> SingleColorIcon (" :/icons/lock_closed" ). pixmap ( STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE) );
1296
+ labelWalletEncryptionIcon->setThemedPixmap ( QStringLiteral (" :/icons/lock_closed" ), STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
1297
1297
labelWalletEncryptionIcon->setToolTip (tr (" Wallet is <b>encrypted</b> and currently <b>locked</b>" ));
1298
1298
encryptWalletAction->setChecked (true );
1299
1299
changePassphraseAction->setEnabled (true );
0 commit comments