@@ -152,9 +152,9 @@ BitcoinGUI::BitcoinGUI(interfaces::Node& node, const PlatformStyle *_platformSty
152
152
unitDisplayControl = new UnitDisplayStatusBarControl (platformStyle);
153
153
labelWalletEncryptionIcon = new GUIUtil::ThemedLabel (platformStyle);
154
154
labelWalletHDStatusIcon = new GUIUtil::ThemedLabel (platformStyle);
155
- labelProxyIcon = new GUIUtil::ClickableLabel ();
156
- connectionsControl = new GUIUtil::ClickableLabel ();
157
- labelBlocksIcon = new GUIUtil::ClickableLabel ();
155
+ labelProxyIcon = new GUIUtil::ClickableLabel (platformStyle );
156
+ connectionsControl = new GUIUtil::ClickableLabel (platformStyle );
157
+ labelBlocksIcon = new GUIUtil::ClickableLabel (platformStyle );
158
158
if (enableWallet)
159
159
{
160
160
frameBlocksLayout->addStretch ();
@@ -925,7 +925,7 @@ void BitcoinGUI::updateNetworkState()
925
925
tooltip = QString (" <nobr>" ) + tooltip + QString (" </nobr>" );
926
926
connectionsControl->setToolTip (tooltip);
927
927
928
- connectionsControl->setPixmap (platformStyle-> SingleColorIcon ( icon). pixmap ( STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE) );
928
+ connectionsControl->setThemedPixmap ( icon, STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
929
929
}
930
930
931
931
void BitcoinGUI::setNumConnections (int count)
@@ -1021,7 +1021,7 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVer
1021
1021
// Set icon state: spinning if catching up, tick otherwise
1022
1022
if (secs < MAX_BLOCK_TIME_GAP) {
1023
1023
tooltip = tr (" Up to date" ) + QString (" .<br>" ) + tooltip;
1024
- labelBlocksIcon->setPixmap (platformStyle-> SingleColorIcon (" :/icons/synced" ). pixmap ( STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE) );
1024
+ labelBlocksIcon->setThemedPixmap ( QStringLiteral (" :/icons/synced" ), STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
1025
1025
1026
1026
#ifdef ENABLE_WALLET
1027
1027
if (walletFrame)
@@ -1047,9 +1047,9 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVer
1047
1047
tooltip = tr (" Catching up..." ) + QString (" <br>" ) + tooltip;
1048
1048
if (count != prevBlocks)
1049
1049
{
1050
- labelBlocksIcon->setPixmap (platformStyle-> SingleColorIcon ( QString (
1051
- " :/animation/spinner-%1" ).arg (spinnerFrame, 3 , 10 , QChar (' 0' )))
1052
- . pixmap ( STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE) );
1050
+ labelBlocksIcon->setThemedPixmap (
1051
+ QString ( " :/animation/spinner-%1" ).arg (spinnerFrame, 3 , 10 , QChar (' 0' )),
1052
+ STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
1053
1053
spinnerFrame = (spinnerFrame + 1 ) % SPINNER_FRAMES;
1054
1054
}
1055
1055
prevBlocks = count;
@@ -1325,7 +1325,7 @@ void BitcoinGUI::updateProxyIcon()
1325
1325
if (proxy_enabled) {
1326
1326
if (!GUIUtil::HasPixmap (labelProxyIcon)) {
1327
1327
QString ip_port_q = QString::fromStdString (ip_port);
1328
- labelProxyIcon->setPixmap (platformStyle-> SingleColorIcon (" :/icons/proxy" ). pixmap ( STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE) );
1328
+ labelProxyIcon->setThemedPixmap ( (" :/icons/proxy" ), STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE);
1329
1329
labelProxyIcon->setToolTip (tr (" Proxy is <b>enabled</b>: %1" ).arg (ip_port_q));
1330
1330
} else {
1331
1331
labelProxyIcon->show ();
0 commit comments