Statusbar icons for tDASH added

This commit is contained in:
crowning- 2015-06-01 09:55:07 +02:00
parent 9cd74bc979
commit 8f695a03c1
10 changed files with 10 additions and 1 deletions

View File

@ -1170,7 +1170,12 @@ void UnitDisplayStatusBarControl::setOptionsModel(OptionsModel *optionsModel)
/** When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar */ /** When Display Units are changed on OptionsModel it will refresh the display text of the control on the status bar */
void UnitDisplayStatusBarControl::updateDisplayUnit(int newUnits) void UnitDisplayStatusBarControl::updateDisplayUnit(int newUnits)
{ {
setPixmap(QIcon(":/icons/unit_" + BitcoinUnits::id(newUnits)).pixmap(31,STATUSBAR_ICONSIZE)); if(Params().NetworkID() == CBaseChainParams::MAIN){
setPixmap(QIcon(":/icons/unit_" + BitcoinUnits::id(newUnits)).pixmap(39,STATUSBAR_ICONSIZE));
}
else{
setPixmap(QIcon(":/icons/unit_t" + BitcoinUnits::id(newUnits)).pixmap(39,STATUSBAR_ICONSIZE));
}
} }
/** Shows context menu with Display Unit options by the mouse coordinates */ /** Shows context menu with Display Unit options by the mouse coordinates */

4
src/qt/dash.qrc Executable file → Normal file
View File

@ -40,6 +40,10 @@
<file alias="unit_mdash">res/icons/unit_mdash.png</file> <file alias="unit_mdash">res/icons/unit_mdash.png</file>
<file alias="unit_udash">res/icons/unit_udash.png</file> <file alias="unit_udash">res/icons/unit_udash.png</file>
<file alias="unit_duffs">res/icons/unit_duffs.png</file> <file alias="unit_duffs">res/icons/unit_duffs.png</file>
<file alias="unit_tdash">res/icons/unit_tdash.png</file>
<file alias="unit_tmdash">res/icons/unit_tmdash.png</file>
<file alias="unit_tudash">res/icons/unit_tudash.png</file>
<file alias="unit_tduffs">res/icons/unit_tduffs.png</file>
<file alias="lock_closed">res/icons/lock_closed.png</file> <file alias="lock_closed">res/icons/lock_closed.png</file>
<file alias="lock_open">res/icons/lock_open.png</file> <file alias="lock_open">res/icons/lock_open.png</file>
<file alias="key">res/icons/key.png</file> <file alias="key">res/icons/key.png</file>

BIN
src/qt/res/icons/unit_dash.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 353 B

BIN
src/qt/res/icons/unit_duffs.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 330 B

BIN
src/qt/res/icons/unit_mdash.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 393 B

BIN
src/qt/res/icons/unit_tdash.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
src/qt/res/icons/unit_tduffs.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

BIN
src/qt/res/icons/unit_tmdash.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

BIN
src/qt/res/icons/unit_tudash.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

BIN
src/qt/res/icons/unit_udash.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 B

After

Width:  |  Height:  |  Size: 378 B