Commit 0730f2b3a9603ca9674b15b449f9381fa086705f

Authored by Geoffrey PREUD'HOMME
1 parent 299af019

Ajout d'une icone

app/src/main/AndroidManifest.xml
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 9
10 <application 10 <application
11 android:allowBackup="true" 11 android:allowBackup="true"
12 - android:icon="@mipmap/ic_launcher" 12 + android:icon="@drawable/etunicorn"
13 android:label="@string/app_name" 13 android:label="@string/app_name"
14 android:supportsRtl="true" 14 android:supportsRtl="true"
15 android:theme="@style/AppTheme"> 15 android:theme="@style/AppTheme">
@@ -40,4 +40,4 @@ @@ -40,4 +40,4 @@
40 </activity> 40 </activity>
41 </application> 41 </application>
42 42
43 -</manifest>  
44 \ No newline at end of file 43 \ No newline at end of file
  44 +</manifest>
app/src/main/res/drawable-hdpi/etunicorn.png 0 → 100644

4.83 KB

app/src/main/res/drawable-ldpi/etunicorn.png 0 → 100644

1.98 KB

app/src/main/res/drawable-mdpi/etunicorn.png 0 → 100644

2.91 KB

app/src/main/res/drawable-xhdpi/etunicorn.png 0 → 100644

7.05 KB

app/src/main/res/drawable-xxhdpi/etunicorn.png 0 → 100644

11.5 KB

app/src/main/res/drawable-xxxhdpi/etunicorn.png 0 → 100644

16.3 KB

generateAndroidIcon.sh 0 → 100755
@@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
  1 +#!/usr/bin/env bash
  2 +
  3 +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4 +
  5 +for density in l-36 m-48 h-72 xh-96 xxh-144 xxxh-192
  6 +do
  7 + drawdir="${DIR}/app/src/main/res/drawable-$(echo "$density" | cut -d '-' -f 1)dpi"
  8 + mkdir -p "$drawdir"
  9 + outfile="${drawdir}/etunicorn.png"
  10 + size="$(echo "$density" | cut -d '-' -f 2)"
  11 + inkscape -z -e "$outfile" -w "$size" -h "$size" "${DIR}/logo.svg"
  12 + optipng -o9 "$outfile"
  13 +done
logo.svg 0 → 100644
@@ -0,0 +1,224 @@ @@ -0,0 +1,224 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<!-- Created with Inkscape (http://www.inkscape.org/) -->
  3 +
  4 +<svg
  5 + xmlns:dc="http://purl.org/dc/elements/1.1/"
  6 + xmlns:cc="http://creativecommons.org/ns#"
  7 + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  8 + xmlns:svg="http://www.w3.org/2000/svg"
  9 + xmlns="http://www.w3.org/2000/svg"
  10 + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
  11 + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
  12 + width="128"
  13 + height="128"
  14 + viewBox="0 0 128.00001 127.99999"
  15 + id="svg2"
  16 + version="1.1"
  17 + inkscape:version="0.91 r13725"
  18 + sodipodi:docname="etunicorn.svg"
  19 + inkscape:export-filename="/home/geoffrey/etunicorn.svg.png"
  20 + inkscape:export-xdpi="360"
  21 + inkscape:export-ydpi="360">
  22 + <defs
  23 + id="defs4">
  24 + <filter
  25 + style="color-interpolation-filters:sRGB;"
  26 + inkscape:label="Drop Shadow"
  27 + id="filter4209">
  28 + <feFlood
  29 + flood-opacity="0.498039"
  30 + flood-color="rgb(0,0,0)"
  31 + result="flood"
  32 + id="feFlood4211" />
  33 + <feComposite
  34 + in="flood"
  35 + in2="SourceGraphic"
  36 + operator="in"
  37 + result="composite1"
  38 + id="feComposite4213" />
  39 + <feGaussianBlur
  40 + in="composite1"
  41 + stdDeviation="3"
  42 + result="blur"
  43 + id="feGaussianBlur4215" />
  44 + <feOffset
  45 + dx="0"
  46 + dy="0"
  47 + result="offset"
  48 + id="feOffset4217" />
  49 + <feComposite
  50 + in="SourceGraphic"
  51 + in2="offset"
  52 + operator="over"
  53 + result="composite2"
  54 + id="feComposite4219" />
  55 + </filter>
  56 + </defs>
  57 + <sodipodi:namedview
  58 + id="base"
  59 + pagecolor="#ffffff"
  60 + bordercolor="#666666"
  61 + borderopacity="1.0"
  62 + inkscape:pageopacity="0.0"
  63 + inkscape:pageshadow="2"
  64 + inkscape:zoom="3.959798"
  65 + inkscape:cx="59.283492"
  66 + inkscape:cy="65.066012"
  67 + inkscape:document-units="px"
  68 + inkscape:current-layer="layer1"
  69 + showgrid="false"
  70 + fit-margin-top="0"
  71 + fit-margin-left="0"
  72 + fit-margin-right="0"
  73 + fit-margin-bottom="0"
  74 + units="px"
  75 + inkscape:window-width="1600"
  76 + inkscape:window-height="882"
  77 + inkscape:window-x="0"
  78 + inkscape:window-y="1042"
  79 + inkscape:window-maximized="0" />
  80 + <metadata
  81 + id="metadata7">
  82 + <rdf:RDF>
  83 + <cc:Work
  84 + rdf:about="">
  85 + <dc:format>image/svg+xml</dc:format>
  86 + <dc:type
  87 + rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
  88 + <dc:title />
  89 + </cc:Work>
  90 + </rdf:RDF>
  91 + </metadata>
  92 + <g
  93 + inkscape:label="Calque 1"
  94 + inkscape:groupmode="layer"
  95 + id="layer1"
  96 + transform="translate(-414.83553,-113.13441)">
  97 + <g
  98 + id="g4620"
  99 + transform="matrix(1.1866584,0,0,1.1866584,-60.798006,-53.303113)"
  100 + style="filter:url(#filter4209)">
  101 + <path
  102 + inkscape:connector-curvature="0"
  103 + style="fill:#c1133d;fill-opacity:1;stroke:none"
  104 + id="path40"
  105 + d="m 454.34181,149.24615 c -20.61452,0 -37.79194,14.65729 -41.68787,34.11806 l 17.39947,0 c 1.26902,-3.71372 3.38617,-7.02935 6.11709,-9.77251 4.67496,-4.66125 11.04759,-7.5192 18.1718,-7.52524 7.11654,0.007 13.48296,2.86416 18.16364,7.52524 4.66304,4.67497 7.51936,11.04155 7.5272,18.16527 -0.008,7.12438 -2.86432,13.49717 -7.5272,18.17181 -4.68101,4.65635 -11.04743,7.5205 -18.16364,7.52524 -7.12438,-0.005 -13.497,-2.86889 -18.1718,-7.52524 -2.711,-2.71736 -4.79596,-6.01618 -6.08492,-9.68369 l -17.39458,0 0,21.67424 c 0,18.26651 15.81301,17.20353 15.81301,17.20353 l 0.0123,-13.59203 c 7.15491,5.47734 16.10529,8.74398 25.82652,8.74398 23.48505,-0.008 42.5043,-19.0323 42.5043,-42.51735 0,-23.47851 -19.01762,-42.50429 -42.5043,-42.51082" />
  106 + <g
  107 + transform="matrix(1.0029762,0,0,1.0029762,417.5729,158.91417)"
  108 + id="g4334">
  109 + <path
  110 + style="fill:#ff9c70"
  111 + inkscape:connector-curvature="0"
  112 + d="M 2,2 6.4,7.9 C 6.7,7.3 7.1,6.7 7.4,6 L 2,2"
  113 + id="path4280" />
  114 + <path
  115 + style="fill:#ffe76e"
  116 + inkscape:connector-curvature="0"
  117 + d="m 9.1,11.5 c 0.7,-0.9 1.4,-1.8 2,-2.7 L 7.5,6.1 C 7.2,6.7 6.8,7.3 6.5,8 l 2.6,3.5"
  118 + id="path4282" />
  119 + <path
  120 + style="fill:#d3ff75"
  121 + inkscape:connector-curvature="0"
  122 + d="m 11.6,14.9 c 1.1,-1.1 2.2,-2.2 3.3,-3.3 L 11.1,8.8 c -0.7,0.9 -1.4,1.8 -2,2.7 l 2.5,3.4"
  123 + id="path4284" />
  124 + <path
  125 + style="fill:#59ffba"
  126 + inkscape:connector-curvature="0"
  127 + d="m 14.1,18.2 c 1.6,-1.2 3.2,-2.4 4.8,-3.6 L 15,11.7 c -1.1,1.1 -2.2,2.2 -3.3,3.3 l 2.4,3.2"
  128 + id="path4286" />
  129 + <path
  130 + style="fill:#73deff"
  131 + inkscape:connector-curvature="0"
  132 + d="m 16.4,21.3 c 2.2,-1.2 4.4,-2.5 6.5,-3.7 l -4.1,-3.1 c -1.6,1.2 -3.2,2.4 -4.8,3.6 l 2.4,3.2"
  133 + id="path4288" />
  134 + <path
  135 + style="fill:#8387f7"
  136 + inkscape:connector-curvature="0"
  137 + d="m 23,17.6 c -2.2,1.2 -4.4,2.5 -6.5,3.7 l 3.9,5.2 4.9,-4.9 1.4,-1.4 -3.7,-2.6"
  138 + id="path4290" />
  139 + <g
  140 + style="fill:#ff639b"
  141 + id="g4292">
  142 + <path
  143 + inkscape:connector-curvature="0"
  144 + d="m 32.3,17.8 c 0,0 4.2,-7.1 22.2,-8.8 C 36.2,7 31,13.6 31,13.6 c 0,0 0.7,2.7 1.3,4.2"
  145 + id="path4294" />
  146 + <path
  147 + inkscape:connector-curvature="0"
  148 + d="m 31.1,18.8 c 0,0 9,-6.3 25.1,-5.2 l -14.7,7.1 c 0,0 8.4,1.2 19.8,1.9 l -11.9,3.9 c 0,0 4.2,2.6 11.8,5.1 l -8,1.2 c 0,0 6.3,0.4 8.7,6.2 l -5.5,-0.4 c 0,0 2.5,5.9 5.5,9.3 l -5.2,-3 c 0,0 3,5.1 5.2,10.1 l -5.4,-1.6 c 2.5,5.9 4.8,8.4 4.8,8.4 -13.5,-4 -30.2,-43 -30.2,-43"
  149 + id="path4296" />
  150 + </g>
  151 + <path
  152 + style="fill:#fca9c9"
  153 + inkscape:connector-curvature="0"
  154 + d="m 29.4,20.4 c 0,0 11.9,-5.4 28.7,-1.6 l -18.2,3.6 c 0,0 12.2,0.6 19.6,5.8 l -11.7,0 c 0,0 7.3,1.7 10.6,7.1 l -6.9,-0.7 c 0,0 7.5,3.2 10.5,9.6 l -7.3,-3.8 c 0,0 5.8,3.1 5,13.4 L 55.5,45 c 0,0 1.6,10.7 4.8,13.2 l -4.4,-0.1 c 2,2.2 3,3.9 3,3.9 L 48.1,62 29.4,20.4"
  155 + id="path4298" />
  156 + <path
  157 + style="fill:#b2c1c0"
  158 + inkscape:connector-curvature="0"
  159 + d="m 28.2,19 c 0,0 -0.6,-4.4 2.6,-10.9 0,0 4.1,5.1 5.1,14.2 L 28.2,19"
  160 + id="path4300" />
  161 + <path
  162 + style="fill:#eff6f7"
  163 + inkscape:connector-curvature="0"
  164 + d="m 10.4,53.9 c 1.5,1 5,-3 9,-3.7 15,-2.8 12.2,-8.6 12.2,-8.6 4.1,5.1 -2.2,17.1 -5.8,20.4 l 30.4,0 C 56,22 31.1,18.8 31.1,18.8 30.3,11.6 24.1,8 24.1,8 c -1.9,4.5 -1,12.5 -1,12.5 C 20,25.9 4.2,40.8 2.4,43 c -1.8,2.2 3.8,8.8 3.8,8.8 1.5,0.2 3.4,1.5 4.2,2.1"
  165 + id="path4302" />
  166 + <g
  167 + style="fill:#b2c1c0"
  168 + id="g4304">
  169 + <path
  170 + inkscape:connector-curvature="0"
  171 + d="m 15.1,52 c 0.8,-0.6 2.7,-1.8 5.6,-2.4 2,-0.4 3.9,-1 5.7,-1.8 1.8,-0.8 3.4,-1.9 4.4,-3.6 0.9,-1.6 0.9,-3.7 0.2,-5.5 1.1,1.6 1.5,3.9 0.5,5.9 -0.9,2 -2.8,3.3 -4.7,4.1 -1.9,0.9 -3.9,1.4 -6,1.7 -2.4,0.3 -4.7,1.2 -5.7,1.6"
  172 + id="path4306" />
  173 + <path
  174 + inkscape:connector-curvature="0"
  175 + d="M 6.2,45.8 C 5.7,46.2 4.4,46.4 4,45.9 3.6,45.4 4.3,44.3 4.8,44 5.3,43.6 6,43.7 6.4,44.2 c 0.4,0.6 0.3,1.3 -0.2,1.6"
  176 + id="path4308" />
  177 + <path
  178 + inkscape:connector-curvature="0"
  179 + d="m 15.9,43.1 c -0.1,2.3 -1.3,4.6 -3.1,6.2 -0.9,0.8 -2,1.5 -3.1,1.9 -1.1,0.4 -2.4,0.6 -3.6,0.6 2.3,-0.7 4.4,-1.7 6,-3.2 0.8,-0.7 1.5,-1.6 2.2,-2.5 0.6,-0.9 1.2,-1.9 1.6,-3"
  180 + id="path4310" />
  181 + </g>
  182 + <path
  183 + style="fill:#3e4347"
  184 + inkscape:connector-curvature="0"
  185 + d="m 16.4,35.2 c 0,0 0.9,-0.7 1.7,-0.5 0,0 -1.1,1.1 -0.3,2.9 0,0 0.9,-2.1 2.5,-2.2 0,0 -1.1,1.5 0.3,2.9 0,0 0.3,-2.1 2.3,-2.8 0,0 -0.3,1.1 0.7,2.5 0,0 -0.3,-1.9 1.1,-2.9 1.4,-0.9 3,-1.5 3.7,-3.8 0,0 -3.4,3.5 -8.1,2.5 -1.1,-0.4 -2.9,-0.7 -3.9,1.4"
  186 + id="path4312" />
  187 + <g
  188 + style="fill:#b2c1c0"
  189 + id="g4314">
  190 + <path
  191 + inkscape:connector-curvature="0"
  192 + d="m 25.4,21.6 c -1.7,-2.2 -0.6,-8.4 -0.4,-9.3 0.2,-1 5.8,2.8 4.3,9.5 -0.1,0.6 -0.4,1.2 -1,1.2 -0.6,0 -0.6,-1.7 -0.3,-2.8 0.3,-1.1 -0.4,0 -0.6,0.7 -0.3,0.8 -0.5,0.2 -0.4,-0.6 0.1,-0.8 -0.6,0.8 -0.4,1.7 0.1,0.9 0,1.1 -1.2,-0.4"
  193 + id="path4316" />
  194 + <path
  195 + inkscape:connector-curvature="0"
  196 + d="m 5,42.1 c -0.5,0.3 -0.4,0.5 0,0.3 0.5,-0.2 2.7,-0.7 2.9,1.6 0,0 0.1,1.1 0.4,0 C 8.6,43 8,40.3 5,42.1"
  197 + id="path4318" />
  198 + </g>
  199 + <g
  200 + style="fill:#ff639b"
  201 + id="g4320">
  202 + <path
  203 + inkscape:connector-curvature="0"
  204 + d="m 23,18 c 0,0 2.7,11 13.5,16.6 0,0 -26.6,-5.8 -13.5,-16.6"
  205 + id="path4322" />
  206 + <path
  207 + inkscape:connector-curvature="0"
  208 + d="m 31.1,18.8 c 0,0 6.8,18 20.8,23 C 38.1,28.6 41.5,21.2 30.5,16 c 0,0 0,1.3 0.6,2.8"
  209 + id="path4324" />
  210 + </g>
  211 + <path
  212 + style="fill:#b2c1c0"
  213 + inkscape:connector-curvature="0"
  214 + d="m 31.7,41.6 c 0,0 6.3,4.1 1.7,20.4 l -7.5,0 c 0,0 9.3,-11.2 5.8,-20.4"
  215 + id="path4326" />
  216 + </g>
  217 + <path
  218 + id="path40-5"
  219 + d="M 496.82227,192.73047 480,193.04688 c -0.32895,6.60252 -3.11453,12.49215 -7.49414,16.88281 -4.68101,4.65635 -11.04785,7.5187 -18.16406,7.52343 -4.00279,-0.003 -7.76852,-0.90679 -11.12891,-2.52539 l -8.76172,14.40625 c 5.93302,3.148 12.701,4.94141 19.89258,4.94141 23.15872,-0.008 41.96008,-18.51121 42.47852,-41.54492 z"
  220 + style="fill:#c1133d;fill-opacity:1;stroke:none"
  221 + inkscape:connector-curvature="0" />
  222 + </g>
  223 + </g>
  224 +</svg>