diff --git a/src/Makefile.qt.include b/src/Makefile.qt.include index 172676996..2973e3def 100644 --- a/src/Makefile.qt.include +++ b/src/Makefile.qt.include @@ -288,6 +288,7 @@ RES_ICONS = \ qt/res/icons/history.png \ qt/res/icons/info.png \ qt/res/icons/key.png \ + qt/res/icons/litecoin_splash.png \ qt/res/icons/lock_closed.png \ qt/res/icons/lock_open.png \ qt/res/icons/network_disabled.png \ diff --git a/src/qt/bitcoin.qrc b/src/qt/bitcoin.qrc index 451d39123..5d4cee07c 100644 --- a/src/qt/bitcoin.qrc +++ b/src/qt/bitcoin.qrc @@ -1,6 +1,7 @@ res/icons/bitcoin.png + res/icons/litecoin_splash.png res/icons/address-book.png res/icons/quit.png res/icons/send.png diff --git a/src/qt/networkstyle.cpp b/src/qt/networkstyle.cpp index 93092501c..5ae272e47 100644 --- a/src/qt/networkstyle.cpp +++ b/src/qt/networkstyle.cpp @@ -16,8 +16,8 @@ static const struct { const char *titleAddText; } network_styles[] = { {"main", QAPP_APP_NAME_DEFAULT, 0, 0, ""}, - {"test", QAPP_APP_NAME_TESTNET, 70, 30, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")}, - {"regtest", QAPP_APP_NAME_TESTNET, 160, 30, "[regtest]"} + {"test", QAPP_APP_NAME_TESTNET, 0, 0, QT_TRANSLATE_NOOP("SplashScreen", "[testnet]")}, + {"regtest", QAPP_APP_NAME_TESTNET, 60, 1, "[regtest]"} }; 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)) { // load pixmap - QPixmap pixmap(":/icons/bitcoin"); + QPixmap pixmap; + if (std::char_traits::length(_titleAddText) == 0) { + pixmap.load(":/icons/bitcoin"); + } else { + pixmap.load(":/icons/litecoin_splash"); + } if(iconColorHueShift != 0 && iconColorSaturationReduction != 0) { diff --git a/src/qt/res/icons/litecoin_splash.png b/src/qt/res/icons/litecoin_splash.png new file mode 100755 index 000000000..603ac5b54 Binary files /dev/null and b/src/qt/res/icons/litecoin_splash.png differ