Use different logos depending on how the APK is built, generate PNG from SVG at build time

This commit is contained in:
Guillaume Meunier
2024-11-01 14:13:58 +01:00
parent 33bde8be57
commit 390a4e0de9
14 changed files with 306 additions and 75 deletions
+112 -19
View File
@@ -32,15 +32,24 @@
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="8"
inkscape:cx="86.125"
inkscape:cy="63.4375"
inkscape:cx="120.5"
inkscape:cy="106.25"
inkscape:window-width="3840"
inkscape:window-height="2082"
inkscape:window-height="2058"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer5" /><defs
inkscape:current-layer="layer2"
showgrid="false" /><defs
id="defs1"><linearGradient
id="linearGradient68"
inkscape:collect="always"><stop
style="stop-color:#001e79;stop-opacity:1;"
offset="0"
id="stop68" /><stop
style="stop-color:#000000;stop-opacity:1;"
offset="1"
id="stop69" /></linearGradient><linearGradient
id="linearGradient78"
inkscape:collect="always"><stop
style="stop-color:#fff1bc;stop-opacity:1;"
@@ -360,9 +369,93 @@
y="0"
xlink:href="#path52"
id="use1482"
style="display:inline;opacity:1" /></clipPath></defs><g
style="display:inline;opacity:1" /></clipPath><filter
style="color-interpolation-filters:sRGB"
id="filter60"
inkscape:label="nightly"
x="-0.010629387"
y="-0.0085494007"
width="1.0210633"
height="1.014946"><feColorMatrix
id="feColorMatrix60"
values="0.80000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.80000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 " /></filter><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient68"
id="linearGradient69"
x1="23.812499"
y1="0"
x2="23.812499"
y2="47.624999"
gradientUnits="userSpaceOnUse" /></defs><g
id="night-sky"
inkscape:label="Night Sky"
style="display:none"><rect
style="fill:url(#linearGradient69);stroke:#000000;stroke-width:0.263121;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
id="rect68"
width="47.361877"
height="47.361877"
x="0.13156073"
y="0.13156056"
rx="4"
ry="4" /><path
sodipodi:type="star"
style="fill:#ffff25;stroke:#000000;stroke-width:0.390001;stroke-linejoin:round;stroke-dasharray:none"
id="path61"
inkscape:flatsided="false"
sodipodi:sides="5"
sodipodi:cx="2.0582724"
sodipodi:cy="2.8668792"
sodipodi:r1="3.4354589"
sodipodi:r2="1.7177294"
sodipodi:arg1="0.53921349"
sodipodi:arg2="1.167532"
inkscape:rounded="0"
inkscape:randomized="0"
d="M 5.0062836,4.6308542 2.7323487,4.4468208 1.291618,6.2157027 0.76395966,3.9961928 -1.3635573,3.172591 0.58426673,1.9848918 0.71011966,-0.29300402 2.4415995,1.1924675 4.6468978,0.60825219 3.7691872,2.7140233 Z"
inkscape:transform-center-x="0.23690925"
inkscape:transform-center-y="0.094470101"
transform="translate(2.413677,1.5682505)" /><path
sodipodi:type="star"
style="fill:#ffff25;stroke:#000000;stroke-width:0.390001;stroke-linejoin:round;stroke-dasharray:none"
id="path63"
inkscape:flatsided="false"
sodipodi:sides="5"
sodipodi:cx="30.279676"
sodipodi:cy="1.1328766"
sodipodi:r1="1.742862"
sodipodi:r2="0.87143093"
sodipodi:arg1="2.2022739"
sodipodi:arg2="2.8305925"
inkscape:rounded="0"
inkscape:randomized="0"
d="M 29.250799,2.5396384 29.45005,1.3995441 28.623826,0.58906905 29.769692,0.42625958 30.285182,-0.60997666 30.794115,0.42949586 31.93893,0.59954164 31.107602,1.4047805 31.299646,2.5461108 30.276923,2.0043032 Z"
inkscape:transform-center-x="-0.0017010138"
inkscape:transform-center-y="-0.16480957"
transform="translate(5.0017619,1.5289764)" /><path
sodipodi:type="star"
style="fill:#ffff25;stroke:#000000;stroke-width:0.390001;stroke-linejoin:round;stroke-dasharray:none"
id="path64"
inkscape:flatsided="false"
sodipodi:sides="5"
sodipodi:cx="9.2666178"
sodipodi:cy="8.301302"
sodipodi:r1="2.1534588"
sodipodi:r2="1.0767293"
sodipodi:arg1="1.6961484"
sodipodi:arg2="2.324467"
inkscape:rounded="0"
inkscape:randomized="0"
d="M 8.9973836,10.437864 8.5297904,9.0864334 7.1514285,8.7054791 8.2922212,7.8431565 8.228593,6.414535 9.4012349,7.233021 10.740273,6.7310387 10.324212,8.0992135 11.215411,9.2175929 9.78563,9.2446854 Z"
inkscape:transform-center-x="0.083198064"
inkscape:transform-center-y="0.12489747"
transform="translate(4.119516,-2.3860301)"
inkscape:label="path64" /><path
id="path60"
style="fill:#ffff25;stroke:#000000;stroke-width:0.511916;stroke-linejoin:round;stroke-dasharray:none"
d="m 42.095622,1.1317139 a 7.3524632,7.3524632 0 0 1 1.655196,4.646228 7.3524632,7.3524632 0 0 1 -6.117456,7.2367671 6.3973684,6.3973684 0 0 0 2.924886,0.723471 6.3973684,6.3973684 0 0 0 6.397542,-6.397026 6.3973684,6.3973684 0 0 0 -4.860168,-6.2094401 z"
inkscape:label="Moon" /></g><g
inkscape:groupmode="layer"
id="layer14"
id="wivrn"
inkscape:label="WiVRn"
inkscape:export-filename="../../../projects/WiVRn/resources/wivrn2.svg"
inkscape:export-xdpi="96"
@@ -370,7 +463,7 @@
transform="matrix(0.21078984,0,0,0.21078984,5.4880519,1.764901)"><g
inkscape:groupmode="layer"
id="layer12"
inkscape:label="Piquants"
inkscape:label="Spikes"
transform="translate(-19.630943,-45.841666)"
inkscape:export-filename="wivrn2.svg"
inkscape:export-xdpi="96"
@@ -428,7 +521,7 @@
sodipodi:nodetypes="csc" /></g><g
inkscape:groupmode="layer"
id="layer11"
inkscape:label="Aile"
inkscape:label="Wing"
style="display:inline"
transform="translate(-19.630943,-45.841666)"><path
style="font-variation-settings:normal;display:inline;opacity:1;vector-effect:none;fill-opacity:0.97861;-inkscape-stroke:none;stop-color:#000000;stop-opacity:1"
@@ -460,7 +553,7 @@
style="font-variation-settings:normal;opacity:1;fill:none;fill-opacity:0.97861;stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;stop-color:#000000;stop-opacity:1" /></g><g
inkscape:groupmode="layer"
id="layer6"
inkscape:label="Corps 1"
inkscape:label="Body"
inkscape:highlight-color="#009999"
style="display:inline;opacity:1"
transform="translate(-19.630943,-45.841666)"><g
@@ -642,12 +735,12 @@
sodipodi:nodetypes="scsss" /></g></g><g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Tête"
inkscape:label="Head"
style="display:inline"
transform="translate(-19.630943,-45.841666)"><g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Oreille"
inkscape:label="Ear"
style="display:inline"><path
style="display:inline;fill-opacity:0.97861"
d="m 141.01843,145.85013 c 6.29245,5.843 6.96471,8.0753 10.72592,14.22502 3.48313,-10.09867 3.41593,-17.70563 17.41662,-13.89377 -6.22042,-9.77481 -6.40933,-20.13734 3.90065,-28.01751 -11.61941,-1.80192 -17.93699,0.52016 -27.08843,4.26912"
@@ -678,7 +771,7 @@
inkscape:label="Oreille (contour)" /></g><g
inkscape:groupmode="layer"
id="layer5"
inkscape:label="Cornes"
inkscape:label="Horn"
style="display:inline"><path
style="font-variation-settings:normal;display:inline;opacity:1;vector-effect:none;fill:url(#radialGradient8);fill-opacity:1;stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000;stop-opacity:1"
d="M 106.52229,81.240098 C 104.64017,70.565398 108.4044,55.227536 108.20777,48.31707 96.97124,54.075792 82.391843,64.188666 77.869141,80.060264"
@@ -736,37 +829,37 @@
d="m 64.86286,149.36155 c 0.744711,3.63966 1.222741,5.19223 3.342865,5.53399 1.960575,0.31604 2.437336,-2.85984 4.494611,-2.94959 2.267585,-0.0989 2.925292,3.37761 4.74424,3.35318 2.290524,-0.0308 3.194585,-2.75821 3.458428,-4.33638"
id="path6"
sodipodi:nodetypes="csssc"
inkscape:label="bouche" /></g><g
inkscape:label="Mouth" /></g><g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Casque"
inkscape:label="Headset"
style="display:inline"
transform="translate(-19.630943,-45.841666)"><path
style="display:inline;fill:#000000;fill-opacity:0.455497;stroke:none"
d="m 44.271921,143.60283 c -0.399761,2.51315 3.031438,7.0469 5.505897,7.64084 3.516995,0.84419 7.602535,-2.09686 11.124165,-2.9215 3.988245,-0.93389 25.034922,1.68838 28.091322,2.92149 2.830337,1.14192 19.492605,7.32494 30.338625,3.70806 7.48864,-2.49727 12.65744,-11.94947 14.26007,-18.36208 1.86934,-7.47985 6.70916,-18.83271 -0.0636,-25.65899 -2.85233,-2.87486 -14.33187,-3.5775 -19.65233,-4.01326 -15.755497,-1.2904 -57.721107,-4.29641 -63.459615,-0.53141 -3.819557,2.50598 -5.873072,35.51039 -6.144514,37.21685 z"
id="path35"
sodipodi:nodetypes="ssssssssss"
inkscape:label="Ombre" /><path
inkscape:label="Shadow" /><path
style="font-variation-settings:normal;display:inline;opacity:1;vector-effect:none;fill:url(#linearGradient39);fill-opacity:1;stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;-inkscape-stroke:none;stop-color:#000000;stop-opacity:1"
d="m 76.183661,95.28576 c 3.876602,-8.876858 7.880858,-12.399504 10.169058,-14.326575 2.019237,-1.700556 4.523931,-4.089279 6.676797,-4.169273 3.32073,-0.123389 9.826784,0.714006 13.099494,2.877072 3.28126,2.16871 0.6742,3.483325 -1.40456,4.944074 -6.537839,4.59415 -8.315037,6.348638 -11.685996,12.079268"
id="path39"
sodipodi:nodetypes="cssssc"
inkscape:label="Sangle haut" /><path
inkscape:label="Top strap" /><path
style="display:inline;fill:url(#linearGradient27);stroke:#000000;stroke-width:3.565;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1"
d="m 113.15184,149.33346 c 8.66096,0.5625 11.00579,-3.68869 14.49512,-9.88815 1.74806,-3.10576 4.749,-28.49683 2.47204,-30.78808 -5.05527,-5.08701 -13.20753,-10.635283 -17.19189,-10.899434 -25.102595,-1.664222 -48.340203,-3.456161 -73.711626,-4.606977 -5.530197,-0.250843 -10.737896,2.62822 -12.472547,6.966651 -1.709095,4.27451 -5.797562,29.26327 -3.146229,33.14776 3.33403,4.88471 8.722877,9.16777 15.05695,10.11286 3.171198,0.47316 6.307694,1.25748 11.255256,1.14143 0.645477,-0.0151 4.053265,-2.70986 6.144039,-3.01099 2.052351,-0.29559 31.720232,1.15535 32.840065,3.70478 0.857517,1.95224 3.303548,2.71763 4.280277,2.81412 4.808562,0.47508 19.978545,1.30603 19.978545,1.30603 z"
id="path23"
sodipodi:nodetypes="sssssssssssss"
inkscape:label="Casque" /><path
inkscape:label="Display" /><path
style="display:inline;fill:url(#linearGradient31);stroke:none;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="m 39.980424,96.639788 c 6.568126,-0.08514 58.099924,3.209663 67.373216,4.126382 5.97551,0.59071 8.87754,5.17452 8.73567,7.95027 -0.46539,9.10533 -1.642,15.8197 -2.93182,24.45005 -0.62562,4.1861 -4.81707,7.50155 -9.03343,7.1312 -13.918776,-1.22258 -57.677237,-4.83954 -71.592657,-6.38884 -2.148746,-0.23923 -5.753502,-3.69298 -5.591,-7.00754 0.326833,-6.66641 1.798447,-18.17972 2.998612,-23.91454 0.625609,-2.989381 4.954816,-6.281047 10.041409,-6.346982 z"
id="path29"
sodipodi:nodetypes="sssssssss"
inkscape:label="Face" /><path
inkscape:label="Front" /><path
style="display:inline;fill:url(#linearGradient37);stroke:#000000;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
d="m 126.8863,117.12518 c 0.96015,-0.76134 1.97178,-1.23305 3.61936,-1.4109 3.8394,-0.41444 13.98969,1.26729 16.85935,4.406 1.79912,1.9678 2.1794,2.33548 2.64946,3.99798 0.5506,1.94737 -0.89634,12.34739 -2.09472,13.51591 -1.49668,1.4594 -3.63578,3.23494 -5.17211,1.39803 -3.19057,-3.81479 -10.82303,-6.80403 -15.05917,-6.37745 -2.13788,0.21529 -3.61756,-0.69143 -4.54238,-2.30027 -1.36659,-2.37737 1.16984,-11.19116 3.74021,-13.2293 z"
id="path36"
sodipodi:nodetypes="sssssssss"
inkscape:label="Sangle coté" /></g></g><metadata
inkscape:label="Side strap" /></g></g><metadata
id="metadata1"><rdf:RDF><cc:Work
rdf:about=""><cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /><dc:title>WiVRn logo</dc:title><dc:creator><cc:Agent><dc:title>Guillaume Meunier, Patrick Nicolas</dc:title></cc:Agent></dc:creator></cc:Work><cc:License

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 60 KiB