Litecoin: Adjust splashscreen for testnet/regtest
This commit is contained in:
parent
231fb558a9
commit
da8306292d
@ -288,6 +288,7 @@ RES_ICONS = \
|
|||||||
qt/res/icons/history.png \
|
qt/res/icons/history.png \
|
||||||
qt/res/icons/info.png \
|
qt/res/icons/info.png \
|
||||||
qt/res/icons/key.png \
|
qt/res/icons/key.png \
|
||||||
|
qt/res/icons/litecoin_splash.png \
|
||||||
qt/res/icons/lock_closed.png \
|
qt/res/icons/lock_closed.png \
|
||||||
qt/res/icons/lock_open.png \
|
qt/res/icons/lock_open.png \
|
||||||
qt/res/icons/network_disabled.png \
|
qt/res/icons/network_disabled.png \
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE RCC><RCC version="1.0">
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
<qresource prefix="/icons">
|
<qresource prefix="/icons">
|
||||||
<file alias="bitcoin">res/icons/bitcoin.png</file>
|
<file alias="bitcoin">res/icons/bitcoin.png</file>
|
||||||
|
<file alias="litecoin_splash">res/icons/litecoin_splash.png</file>
|
||||||
<file alias="address-book">res/icons/address-book.png</file>
|
<file alias="address-book">res/icons/address-book.png</file>
|
||||||
<file alias="quit">res/icons/quit.png</file>
|
<file alias="quit">res/icons/quit.png</file>
|
||||||
<file alias="send">res/icons/send.png</file>
|
<file alias="send">res/icons/send.png</file>
|
||||||
|
|||||||
@ -16,8 +16,8 @@ static const struct {
|
|||||||
const char *titleAddText;
|
const char *titleAddText;
|
||||||
} network_styles[] = {
|
} network_styles[] = {
|
||||||
{"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""},
|
{"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""},
|
||||||
{"test", QAPP_APP_NAME_TESTNET, 70, 30, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")},
|
{"test", QAPP_APP_NAME_TESTNET, 0, 0, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")},
|
||||||
{"regtest", QAPP_APP_NAME_TESTNET, 160, 30, "[regtest]"}
|
{"regtest", QAPP_APP_NAME_TESTNET, 60, 1, "[regtest]"}
|
||||||
};
|
};
|
||||||
static const unsigned network_styles_count = sizeof(network_styles)/sizeof(*network_styles);
|
static const unsigned network_styles_count = sizeof(network_styles)/sizeof(*network_styles);
|
||||||
|
|
||||||
@ -27,7 +27,12 @@ NetworkStyle::NetworkStyle(const QString &_appName, const int iconColorHueShift,
|
|||||||
titleAddText(qApp->translate("SplashScreen", _titleAddText))
|
titleAddText(qApp->translate("SplashScreen", _titleAddText))
|
||||||
{
|
{
|
||||||
// load pixmap
|
// load pixmap
|
||||||
QPixmap pixmap(":/icons/bitcoin");
|
QPixmap pixmap;
|
||||||
|
if (std::char_traits<char>::length(_titleAddText) == 0) {
|
||||||
|
pixmap.load(":/icons/bitcoin");
|
||||||
|
} else {
|
||||||
|
pixmap.load(":/icons/litecoin_splash");
|
||||||
|
}
|
||||||
|
|
||||||
if(iconColorHueShift != 0 && iconColorSaturationReduction != 0)
|
if(iconColorHueShift != 0 && iconColorSaturationReduction != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
BIN
src/qt/res/icons/litecoin_splash.png
Executable file
BIN
src/qt/res/icons/litecoin_splash.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 92 KiB |
Loading…
x
Reference in New Issue
Block a user