From 45fb119783b33ada546beda6adcd98c7063734d2 Mon Sep 17 00:00:00 2001 From: Allen Piscitello Date: Fri, 10 Apr 2020 12:50:22 -0500 Subject: [PATCH] Changing Elements Icon to just the graphic without text, fixing issue with gitian builds on icon, removing color change based on testnet for Elements, and compatible svg with build script. --- src/Makefile.am | 6 ++--- src/qt/res/src/bitcoin.svg | 45 ++++++++++++++++++++++++-------------- src/qt/splashscreen.cpp | 2 +- 3 files changed, 32 insertions(+), 21 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 9fefaf3a93..1423d1e231 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -718,7 +718,7 @@ EXTRA_DIST += $(RES_RENDERED_ICON_SRC) $(RES_ALL_RENDERED_ICONS) if CAN_RENDER_ICONS qt/res/rendered_icons/about.png: qt/res/rendered_icons/about.svg - $(RSVG_CONVERT) -f png -d 142 -p 142 < $< | $(IMAGEMAGICK_CONVERT) - -crop 64x78+0+31 -bordercolor transparent -border 7x0 -colorspace Gray -strip $@ + $(RSVG_CONVERT) -f png -d 142 -p 142 < $< | $(IMAGEMAGICK_CONVERT) - -bordercolor transparent -colorspace Gray -strip $@ qt/res/rendered_icons/about.svg: qt/res/src/bitcoin.svg @$(MKDIR_P) $(@D) @@ -739,14 +739,14 @@ qt/res/rendered_icons/bitcoin.ico: qt/res/rendered_icons/bitcoin32d8.gif $(patsu $(IMAGEMAGICK_CONVERT) $^ $@ qt/res/rendered_icons/bitcoin_testnet.ico: qt/res/rendered_icons/bitcoin.ico - $(IMAGEMAGICK_CONVERT) $^ -modulate 100,87,9 $@ + $(IMAGEMAGICK_CONVERT) $^ $@ qt/res/rendered_icons/nsis-wizard.svg: qt/res/src/bitcoin.svg @$(MKDIR_P) $(@D) sed '/fill="#000"/d' < $< > $@ qt/res/rendered_icons/nsis-wizard.bmp: qt/res/rendered_icons/nsis-wizard.svg - $(RSVG_CONVERT) -f png -d 360 -p 360 < $< | $(IMAGEMAGICK_CONVERT) - -crop 164x290+0+35 -border 0x12 -strip BMP3:$@ + $(RSVG_CONVERT) -f png -d 360 -p 360 < $< | $(IMAGEMAGICK_CONVERT) - -strip BMP3:$@ endif diff --git a/src/qt/res/src/bitcoin.svg b/src/qt/res/src/bitcoin.svg index 43f54a8874..5ec977f8d6 100644 --- a/src/qt/res/src/bitcoin.svg +++ b/src/qt/res/src/bitcoin.svg @@ -1,17 +1,28 @@ - - - - - - - - - - - - - - - - - + + + + + + diff --git a/src/qt/splashscreen.cpp b/src/qt/splashscreen.cpp index c0c2665635..577fe793e2 100644 --- a/src/qt/splashscreen.cpp +++ b/src/qt/splashscreen.cpp @@ -65,7 +65,7 @@ SplashScreen::SplashScreen(interfaces::Node& node, Qt::WindowFlags f, const Netw // draw the bitcoin icon, expected size of PNG: 1024x1024 int _32 = 32 / devicePixelRatio; - QRect rectIcon(QPoint(_32,-_32/2), QSize(pixmap.size().height()/devicePixelRatio+_32*2,pixmap.size().height()/devicePixelRatio+_32*2)); + QRect rectIcon(QPoint(0, 0), QSize(pixmap.size().height()/(2*devicePixelRatio)+_32*2, pixmap.size().height()/(2 * devicePixelRatio)+_32*2)); const QSize requiredSize(1024,1024); QPixmap icon(networkStyle->getAppIcon().pixmap(requiredSize));