mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
GUI: Liquid branding
This commit is contained in:
parent
3f1764afd7
commit
6879be7036
3 changed files with 25 additions and 63 deletions
|
|
@ -638,8 +638,9 @@ RES_RENDERED_ICONS = \
|
|||
|
||||
RES_ALL_RENDERED_ICONS = $(RES_RENDERED_ICONS) \
|
||||
qt/res/rendered_icons/about.svg \
|
||||
$(patsubst %,qt/res/rendered_icons/bitcoin%.png,16 32 48 256 290 512 1024) \
|
||||
$(patsubst %,qt/res/rendered_icons/bitcoin%.png,16 32 48 256 512 1024) \
|
||||
qt/res/rendered_icons/bitcoin.icns \
|
||||
qt/res/rendered_icons/nsis-wizard.svg \
|
||||
qt/res/rendered_icons/nsis-wizard.bmp
|
||||
|
||||
EXTRA_DIST += $(RES_RENDERED_ICON_SRC) $(RES_ALL_RENDERED_ICONS)
|
||||
|
|
@ -647,11 +648,11 @@ 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 128x128+7+7 -colorspace Gray -strip $@
|
||||
$(RSVG_CONVERT) -f png -d 142 -p 142 < $< | $(IMAGEMAGICK_CONVERT) - -crop 64x78+0+31 -bordercolor transparent -border 7x0 -colorspace Gray -strip $@
|
||||
|
||||
qt/res/rendered_icons/about.svg: qt/res/src/bitcoin.svg
|
||||
@$(MKDIR_P) $(@D)
|
||||
sed '/fill="white"/d;s/\(stop-color:\)#....../\1black/' < $< > $@
|
||||
sed '/fill="#000"/d;s/fill="[^"]*"//g' < $< > $@
|
||||
|
||||
qt/res/rendered_icons/bitcoin%.png: qt/res/src/bitcoin.svg
|
||||
@$(MKDIR_P) $(@D)
|
||||
|
|
@ -670,8 +671,12 @@ qt/res/rendered_icons/bitcoin.ico: qt/res/rendered_icons/bitcoin32d8.gif $(patsu
|
|||
qt/res/rendered_icons/bitcoin_testnet.ico: qt/res/rendered_icons/bitcoin.ico
|
||||
$(IMAGEMAGICK_CONVERT) $^ -modulate 100,87,9 $@
|
||||
|
||||
qt/res/rendered_icons/nsis-wizard.bmp: qt/res/rendered_icons/bitcoin290.png
|
||||
$(IMAGEMAGICK_CONVERT) $^ -crop 164x290+62+0 -border 0x12 -strip BMP3:$@
|
||||
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:$@
|
||||
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1,58 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- Designer: Jonas Schnelli
|
||||
License: MIT
|
||||
-->
|
||||
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1"
|
||||
id="svg2" sodipodi:docname="bitcoin-logo-noshadow.svg" inkscape:version="0.48.2 r9819" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1in" height="1in"
|
||||
viewBox="-34 -34 580 580" enable-background="new 0 0 1024 1024" xml:space="preserve">
|
||||
|
||||
<!-- nice shadow with alpha 0.35 -->
|
||||
<filter id="dropShadowAlpha">
|
||||
<feColorMatrix result="matrixOut" in="SourceAlpha" type="saturate"
|
||||
values="0.1" />
|
||||
<feGaussianBlur in="matrixOut" result="blur-out" stdDeviation="6" />
|
||||
<feColorMatrix in="blur-out" result="color-out" type="matrix"
|
||||
values="0 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 0 0
|
||||
0 0 0 0.35 0"/>
|
||||
<feBlend in="SourceGraphic" in2="color-out" mode="normal" />
|
||||
</filter>
|
||||
|
||||
<g>
|
||||
<!-- white background circle for making B not transparent but still keep inner shadows -->
|
||||
<circle cx="255" cy="255" r="200" stroke-width="2" fill="white"/>
|
||||
|
||||
<radialGradient id="innerBtop" cx="277.4905" cy="196.4412" r="34.3969" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color:#F9AA4B"/>
|
||||
<stop offset="1" style="stop-color:#F7931A"/>
|
||||
</radialGradient>
|
||||
<path fill="url(#innerBtop)" filter="url(#dropShadowAlpha)" d="M254.647,174.6l-13.983,56.08c15.855,3.951,64.735,20.071,72.656-11.656
|
||||
C321.568,185.928,270.503,178.552,254.647,174.6z"/>
|
||||
|
||||
<radialGradient id="innerBbottom" cx="261.9153" cy="284.5671" r="39.8381" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color:#F9AA4B"/>
|
||||
<stop offset="1" style="stop-color:#F7931A"/>
|
||||
</radialGradient>
|
||||
<path fill="url(#innerBbottom)" filter="url(#dropShadowAlpha)" d="M233.608,258.984l-15.425,61.832c19.04,4.729,77.769,23.584,86.448-11.296
|
||||
C313.703,273.144,252.647,263.736,233.608,258.984z"/>
|
||||
|
||||
<radialGradient id="coinShape" cx="256.0276" cy="256.0027" r="255.9878" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color:#F9AA4B"/>
|
||||
<stop offset="1" style="stop-color:#F7931A"/>
|
||||
</radialGradient>
|
||||
<path fill="url(#coinShape)" filter="url(#dropShadowAlpha)" d="M317.871,7.656c-137.12-34.192-276.024,49.28-310.2,186.44
|
||||
c-34.208,137.136,49.256,276.048,186.36,310.24c137.16,34.199,276.063-49.265,310.256-186.408
|
||||
C538.479,180.776,455.023,41.848,317.871,7.656z M368.807,219.528c-3.688,24.936-17.512,37.008-35.864,41.24
|
||||
c25.2,13.12,38.024,33.239,25.809,68.12c-15.16,43.319-51.176,46.976-99.072,37.912l-11.624,46.584l-28.088-7l11.472-45.96
|
||||
c-7.279-1.809-14.72-3.729-22.384-5.809l-11.512,46.177l-28.056-7l11.624-46.673c-6.561-1.68-13.225-3.464-20.024-5.168
|
||||
l-36.552-9.111l13.943-32.152c0,0,20.696,5.504,20.416,5.096c7.952,1.969,11.48-3.216,12.872-6.672l18.368-73.64l0.048-0.2
|
||||
l13.104-52.568c0.344-5.968-1.712-13.496-13.088-16.336c0.439-0.296-20.4-5.072-20.4-5.072l7.472-30l38.736,9.673l-0.032,0.144
|
||||
c5.824,1.448,11.824,2.824,17.937,4.216L245.423,89.2l28.072,7l-11.28,45.224c7.536,1.721,15.12,3.456,22.504,5.297l11.2-44.929
|
||||
l28.088,7l-11.504,46.145C347.967,167.152,373.904,185.464,368.807,219.528z"/>
|
||||
</g>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 33.57 22" width="1in" height="1in">
|
||||
<path fill="#84cfc8" d="M3.55,9.88H3.49a.42.42,0,0,1-.37-.46,6.77,6.77,0,0,1,9.82-5.26,5.94,5.94,0,0,1,.87.53.41.41,0,0,1,.09.58.42.42,0,0,1-.58.1,5.35,5.35,0,0,0-.76-.47,6,6,0,0,0-8,2.58,5.82,5.82,0,0,0-.61,2A.42.42,0,0,1,3.55,9.88Z"/>
|
||||
<path fill="#000" d="M15.59,7.17a.45.45,0,0,1,.14.36.61.61,0,0,1-.17.43.64.64,0,0,1-.44.17A.54.54,0,0,1,14.74,8a.48.48,0,0,1-.13-.35.58.58,0,0,1,.17-.43A.6.6,0,0,1,15.22,7,.5.5,0,0,1,15.59,7.17Z"/>
|
||||
<path fill="#000" d="M27.94,7.17a.45.45,0,0,1,.14.35.6.6,0,0,1-.17.43.6.6,0,0,1-.44.18A.54.54,0,0,1,27.09,8,.48.48,0,0,1,27,7.63a.57.57,0,0,1,.17-.43A.64.64,0,0,1,27.57,7,.46.46,0,0,1,27.94,7.17Z"/>
|
||||
<path fill="#000" d="M10.6,12.73l.79-5.59h-.27a.94.94,0,0,0-.93.81l-.8,5.66h3.48l.24-.88Z"/>
|
||||
<path fill="#000" d="M15.19,8.84a1,1,0,0,0-.94.81l-.55,4h1.05l.66-4.77Z"/>
|
||||
<path fill="#000" d="M19.55,16.19l.89-7a4,4,0,0,0-1.82-.44,2.35,2.35,0,0,0-1.51.48,2.85,2.85,0,0,0-.88,1.22A4.31,4.31,0,0,0,16,11.89a2.17,2.17,0,0,0,.39,1.37,1.36,1.36,0,0,0,1.12.49,1.45,1.45,0,0,0,.73-.19,1.66,1.66,0,0,0,.53-.44l.14-.18-.26,2.24a.9.9,0,0,0,.25.75A1,1,0,0,0,19.55,16.19Zm-1.13-3.43a1,1,0,0,1-.59.21q-.78,0-.78-1.08a4.33,4.33,0,0,1,.16-1.12,2.3,2.3,0,0,1,.51-.94h0a1.17,1.17,0,0,1,.89-.39,1.86,1.86,0,0,1,.36,0,1.22,1.22,0,0,1,.34.11h.05L19,12.17A2.43,2.43,0,0,1,18.42,12.76Z"/>
|
||||
<path fill="#000" d="M25.2,8.83a.94.94,0,0,0-.93.82l-.33,2.29a3.75,3.75,0,0,1-.59.71,1,1,0,0,1-.66.28.49.49,0,0,1-.36-.13.57.57,0,0,1-.12-.41,1.91,1.91,0,0,1,0-.28l.45-3.28h-.22a.94.94,0,0,0-.93.82l-.37,2.62a1.84,1.84,0,0,0,0,.33,1.2,1.2,0,0,0,.29.85,1.11,1.11,0,0,0,.82.29,1.42,1.42,0,0,0,.77-.19,2.67,2.67,0,0,0,.79-.73l.12-.16-.05.95h.89l.66-4.78Z"/>
|
||||
<path fill="#000" d="M27.49,8.83a.94.94,0,0,0-.93.82L26,13.6h1.05l.67-4.77Z"/>
|
||||
<path fill="#000" d="M33,7.1a.94.94,0,0,0-1,.81L31.8,9.32l-.09-.11a1.41,1.41,0,0,0-1.1-.52,1.8,1.8,0,0,0-1.29.49,2.94,2.94,0,0,0-.76,1.21,4.93,4.93,0,0,0-.23,1.45,2.32,2.32,0,0,0,.38,1.41,1.28,1.28,0,0,0,1.1.49,1.47,1.47,0,0,0,.8-.23,1.94,1.94,0,0,0,.61-.63l.12-.18v.9h.92l.9-6.49Zm-1.6,4.84a3.72,3.72,0,0,1-.6.76,1,1,0,0,1-.68.27c-.48,0-.72-.37-.73-1.09a4.57,4.57,0,0,1,.14-1.08A2.39,2.39,0,0,1,30,9.86a1,1,0,0,1,1.7.09l0,0Z"/>
|
||||
<path fill="#46b4a5" d="M3.52,15.44A.61.61,0,0,1,3,15.18,8.41,8.41,0,0,1,9.48,1.89h0a.62.62,0,1,1,0,1.24A7.17,7.17,0,0,0,4,14.46a.62.62,0,0,1-.14.87A.66.66,0,0,1,3.52,15.44Z"/>
|
||||
<path fill="#84cfc8" d="M8.8,19.7H8.74A9.51,9.51,0,0,1,1.46,5.58.43.43,0,0,1,2,5.42.41.41,0,0,1,2.19,6,8.68,8.68,0,0,0,8.82,18.87a.42.42,0,0,1,.38.46A.42.42,0,0,1,8.8,19.7Z"/>
|
||||
<path fill="#46b4a5" d="M10.38,18.62h-.17a8.7,8.7,0,0,1-5.45-1.81.42.42,0,0,1-.08-.59.41.41,0,0,1,.58-.07A7.92,7.92,0,0,0,10.2,17.8a8.18,8.18,0,0,0,2.08-.31.42.42,0,0,1,.51.29.41.41,0,0,1-.28.51A8.52,8.52,0,0,1,10.38,18.62Z"/>
|
||||
<path fill="#84cfc8" d="M10,17.35A.31.31,0,0,1,9.79,17a.32.32,0,0,1,.32-.3,8.87,8.87,0,0,0,4-1,.3.3,0,0,1,.42.11.31.31,0,0,1-.12.43,8.7,8.7,0,0,1-4.31,1.08Z"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 2.9 KiB |
|
|
@ -69,7 +69,7 @@ SplashScreen::SplashScreen(interfaces::Node& node, Qt::WindowFlags f, const Netw
|
|||
pixPaint.fillRect(rGradient, gradient);
|
||||
|
||||
// draw the bitcoin icon, expected size of PNG: 1024x1024
|
||||
QRect rectIcon(QPoint(-150,-122), QSize(430,430));
|
||||
QRect rectIcon(QPoint(32,-32), QSize(pixmap.size().height()+64,pixmap.size().height()+64));
|
||||
|
||||
const QSize requiredSize(1024,1024);
|
||||
QPixmap icon(networkStyle->getAppIcon().pixmap(requiredSize));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue