moles: add icon
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 30 Jul 2014 21:25:25 +0000 (17:25 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 30 Jul 2014 21:28:21 +0000 (17:28 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/mnit_moles/Makefile
examples/mnit_moles/art/icon.svg [new file with mode: 0644]

index d5356fb..25e2a8e 100644 (file)
@@ -4,10 +4,14 @@ linux:
        mkdir -p bin
        ../../bin/nitg -o bin/moles src/moles_linux.nit
 
-android:
+android: android-icons
        mkdir -p bin
        ../../bin/nitg -o bin/moles.apk src/moles_android.nit
 
+android-icons:
+       mkdir -p res
+       ../../contrib/inkscape_tools/bin/svg_to_icons art/icon.svg --android --out res/
+
 android-install: android
        adb install -rf bin/moles.apk
 
diff --git a/examples/mnit_moles/art/icon.svg b/examples/mnit_moles/art/icon.svg
new file mode 100644 (file)
index 0000000..992f5a5
--- /dev/null
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   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="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="200"
+   height="200"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="icon.svg">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.89108819"
+     inkscape:cx="559.09851"
+     inkscape:cy="79.285781"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1838"
+     inkscape:window-height="1274"
+     inkscape:window-x="2783"
+     inkscape:window-y="1201"
+     inkscape:window-maximized="0"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     showguides="true"
+     inkscape:guide-bbox="true" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(13.939675,106.02819)">
+    <g
+       id="0up"
+       inkscape:label="#g4948"
+       transform="translate(155.98905,1.1222234)">
+      <path
+         inkscape:connector-curvature="0"
+         id="path4533"
+         d="m -127.26814,-98.063473 c -5.95186,1.40398 -0.2481,8.635395 0.83368,11.991316 2.24081,5.979379 7.51684,11.886198 8.3357,17.847385 -2.62353,2.574653 -3.85637,8.944892 1.49003,6.877037 7.90915,-3.992679 17.380548,-7.629391 25.750679,-2.559786 14.710026,7.405353 15.841258,31.458759 1.031556,39.199112 -11.072405,7.261846 -26.161435,9.565391 -37.670885,2.139523 -6.17665,-0.315109 -4.38976,8.690863 -5.66148,12.7164549 -0.94084,12.8917246 -4.49017,25.4374211 -8.62747,37.4859171 -0.18176,4.437309 5.04449,3.411524 7.56474,1.833876 -2.83088,2.430046 -3.70633,8.312205 1.49002,6.877038 2.63273,-1.267918 6.95152,-3.715862 7.71757,0.878732 4.75803,7.151288 9.39205,15.415322 17.30721,19.484939 4.29992,-3.203098 0.74888,-9.710755 5.08136,-13.180988 3.140909,-6.068884 10.191174,-8.427262 13.868696,-13.830486 -1.972725,-8.564326 -14.939736,-11.666071 -13.104576,-21.8154903 2.146821,-10.5535319 8.866365,-20.4278567 19.141087,-24.3370707 12.082813,-7.168232 31.492135,-6.969318 38.167556,7.2973006 3.843194,8.609366 1.612626,18.5334504 -2.712609,26.5147994 -2.783605,10.343211 8.396661,16.781267 13.295605,24.222453 1.906107,3.450684 5.739154,8.743875 9.818881,4.775721 5.096515,-3.360738 9.891148,-12.368924 16.9463895,-7.853504 4.8812293,4.089998 0.6420891,-5.684198 2.2711095,-5.671336 2.90321,1.707265 8.7438625,2.162091 6.4185681,-2.597992 C -3.0975928,23.888062 1.8254978,15.835082 0.37730995,8.6834277 -0.42578129,-4.2660885 -2.732688,-17.734836 -8.3718097,-29.369512 c -7.4160253,-3.251487 -14.9369123,3.717525 -22.3503713,4.355457 -15.75635,2.980893 -31.017553,-13.460617 -26.05633,-29.074585 3.216828,-12.382812 19.26194,-12.789614 29.416176,-9.903814 3.432063,0.871495 5.427186,-4.069299 9.133439,-4.805405 6.972875,-4.441368 17.94322288,-7.074191 20.5546998,-15.970008 -1.75343051,-5.640296 -9.2846238,-0.481955 -13.1045768,-0.420264 -6.880265,1.299852 -14.363154,5.152008 -21.089581,4.50828 -4.987141,-2.981198 -7.175629,-11.254574 -13.715868,-10.506584 -0.870688,2.601292 1.61029,6.458094 1.26079,8.137827 -6.070547,-1.486822 -10.619918,-7.335727 -16.886947,-7.832181 -2.431158,1.306637 -0.259836,5.412968 -3.018255,2.445168 -6.150003,-3.794229 -10.120077,6.368345 -16.581301,3.400313 -3.524846,-1.473446 -10.120175,-1.56256 -8.710914,3.858782 -1.754714,1.269067 -5.624231,-3.783287 -7.802204,-4.521679 -2.640293,-3.207585 -7.332647,-1.249763 -5.684427,2.917037 1.28382,2.439435 -0.43856,6.28516 -2.55979,2.483375 -6.81601,-5.755573 -11.84574,-17.051947 -21.70087,-17.76568 z"
+         style="fill:#a05a2c;fill-opacity:1;stroke:none" />
+      <path
+         id="path27595"
+         d="m -128.64355,-98.330913 c -4.51196,0.135817 2.29544,10.340448 8.40527,24.451688 5.59286,5.388846 -2.37336,14.95552 -8.67271,20.325466 -10.46414,8.364898 -3.24552,25.819515 -1.60464,30.220758 -2.36354,7.471054 -4.22953,37.686653 -12.95176,53.984742 -0.78364,2.15 10.54536,-2.411181 9.32221,-1.872082 -4.38782,1.933884 -6.95345,11.003259 -6.95345,11.003259 0,0 10.61434,-1.323447 11.80558,-4.928543 4.59647,7.445967 7.6174,10.826646 22.43665,22.246699 14.819256,11.420053 28.232432,8.236664 28.232432,8.236664 0,0 -5.925174,11.48578 -1.572358,26.2479 6.717727,0.940035 13.917942,1.889673 26.368641,1.763554 0.600515,-22.15641 -11.297765,-27.555328 -6.068618,-28.228135 20.231162,-2.603038 28.821563,-9.249977 30.689622,-16.88659 7.237856,-1.192729 11.541247,-9.47793 19.3830524,-11.202364 9.30368386,10.662306 7.9403433,2.249617 4.1644281,-4.164428 12.4187556,5.06073 7.7349981,0.373952 5.11957215,-7.411918 C 1.1734202,19.967625 0.04773787,11.342659 -0.15757072,7.0405799 -0.6866319,3.8952982 -0.45067311,0.36168692 -1.0363033,-3.3131817 -1.6219334,-6.9880381 -3.0312431,-11.050209 -3.5578836,-14.698499 -4.084524,-18.346801 -7.2911551,-29.39878 -10.129275,-29.675158 c -3.071217,-0.299081 -2.54992,0.485941 2.8654325,-9.322206 2.9583852,-5.358147 3.1762498,-12.077703 -7.8321815,-22.159342 -22.769277,-8.114232 2.009868,-3.652006 17.077976,-21.127787 6.8775752,-13.316499 -23.42907,2.522815 -31.901812,1.107967 -6.301456,1.936403 -21.16774,-24.636974 -13.945103,-2.52158 -0.356909,1.438456 -1.160013,1.876716 -2.215934,1.719259 2.665368,1.063649 4.703942,1.358634 3.935193,-0.649498 -7.85497,-20.518965 7.643292,5.366571 11.117877,3.9734 12.109332,-1.303532 26.8548245,-8.14756 32.2838695,-7.297301 -1.40701127,11.206967 -29.9253575,16.94837 -26.2473585,21.127787 -11.853653,-4.574031 -30.936423,-3.263579 -33.582866,11.232494 -3.292994,13.921202 5.799109,26.450014 17.345417,29.380231 13.730356,5.188 26.006057,-8.034164 32.1692516,-3.935193 6.639538,17.444152 9.98526249,35.9448613 6.6478027,54.252182 10.8172311,17.765142 -13.3910283,-7.980713 -1.6428478,14.594602 -11.9651765,-17.53021 -21.2021805,15.848031 -26.9732685,2.330551 -5.02904,-9.322401 -21.273824,-17.286561 -13.104576,-29.036379 6.819954,-12.4953264 3.013047,-30.465813 -11.652758,-35.07289 -12.760407,-5.364578 -27.197857,1.753491 -38.358585,9.704263 -6.141234,9.0486654 -14.650084,20.6160621 -5.23419,30.717433 4.023256,3.431245 9.27164,7.45285 9.054766,10.124527 -0.203744,2.509954 -5.184247,3.161347 -7.985005,6.456774 -2.106125,2.478118 -4.701045,5.001887 -6.494975,7.832182 -1.79394,2.830295 -2.82959,5.957825 -1.9867,9.704263 -1.40702,5.845005 -12.55493,-10.625151 -15.66437,-14.250749 -3.55558,-5.371987 0.37795,-10.417825 -15.20589,-2.101317 18.23377,-24.24188 -12.28037,6.274792 0.26744,-17.001564 2.48369,-8.538738 3.41974,-14.8286165 4.43187,-18.6444124 1.96387,-7.4038367 0.78006,-26.7642916 6.15113,-22.3503706 12.23027,9.621702 33.989775,3.003461 43.860212,-7.297301 12.885049,-15.422095 1.969388,-40.799341 -19.293912,-39.886816 -7.60565,-0.603431 -24.04382,13.81304 -13.52484,-0.764115 -2.75252,-6.593398 -13.88397,-23.602542 -12.64611,-28.004824 13.11205,-1.020822 25.64394,31.958111 27.62277,15.855391 -6.32012,-17.095618 16.101388,14.302184 12.493285,-3.629547 4.402465,0.100863 11.998101,3.346164 15.129482,0.229234 9.565977,-9.521805 10.21336,3.02718 13.945103,1.375408 -2.352619,-4.889335 -2.64412,-6.687757 -1.52823,-6.76242 1.115877,-0.0747 3.633802,1.593027 6.877037,3.705959 1.049442,0.683706 2.848989,1.698279 4.699309,2.636197 -5.596649,-3.767455 -13.37566,-12.743767 -12.837136,-3.51493 -9.705658,-7.653268 -10.034129,7.714006 -17.994914,-3.056461 -0.942906,0.835832 3.779118,4.531827 2.25414,5.195984 -1.524979,0.664169 -9.308795,-1.715677 -11.194289,-1.413613 -1.885506,0.302076 0.763675,5.713895 -1.26079,5.463424 -2.024465,-0.250459 -8.71754,-6.15103 -10.659407,-7.144478 -6.06574,-5.591954 2.636784,20.835063 -7.06807,4.393663 -6.60225,-7.513698 -11.59768,-10.995643 -15.62615,-13.219194 -2.39453,-1.114642 -4.04014,-1.635977 -5.08137,-1.604642 z m 82.562653,16.352066 c -0.978557,-0.390493 -2.021042,-0.889992 -3.056461,-1.413613 1.134851,0.759665 2.192962,1.284863 3.056461,1.413613 z"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1"
+         inkscape:connector-curvature="0"
+         sodipodi:nodetypes="sccccscczcccscccccsssscccccscccccccccccccsssccccscccccccsccscccssscccsccc" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27591"
+         d="m -101.14264,-66.616866 c 1.08956,-0.06211 2.349344,-0.01284 4.049812,0.191029 15.178422,1.81956 19.678572,21.379309 15.244099,34.041334 -7.637607,10.370927 -21.372961,16.160439 -34.155951,15.014865 -14.42653,-3.613739 -22.37215,-19.145293 -13.56305,-33.468248 4.65885,-6.004625 14.62694,-12.54742 15.58796,-12.378667 l 7.83218,-2.597992 c 1.86724,-0.31259 3.18903,-0.698756 5.00495,-0.802321 z"
+         style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27589"
+         d="m -39.402127,-65.547105 c 11.331927,0.0037 24.842329,2.223319 30.1825529,13.639458 6.8810351,13.571286 -6.8435019,25.677805 -19.4467329,27.04968 -12.991634,1.600375 -31.124419,-7.354335 -28.195853,-22.732429 0.417708,-8.648684 5.241708,-18.456403 15.244099,-17.918503 0.733074,-0.01736 1.460475,-0.03839 2.215934,-0.03814 z"
+         style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         sodipodi:nodetypes="csccccccc"
+         inkscape:connector-curvature="0"
+         id="path27587"
+         d="m -127.04615,-46.2914 c -1.63223,3.339183 -1.0304,2.873733 -1.60464,6.380362 -0.57425,3.506641 2.15583,11.898558 3.74417,12.569696 9.02869,12.618281 24.70027,7.352219 37.976525,-4.011605 7.07435,-7.018111 0.429408,-32.404147 -11.2707,-31.366931 3.831139,16.637393 -3.102965,14.062899 -8.431845,17.856432 -4.81437,-4.438544 -11.45355,-10.741138 4.62952,-17.338093 -3.87571,-0.265252 -6.49544,-0.498766 -10.17642,1.564981 -7.3582,3.534211 -11.1141,6.675275 -14.86661,14.345158 z"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         sodipodi:nodetypes="cccccc"
+         inkscape:connector-curvature="0"
+         id="path27585"
+         d="m -31.653142,-57.675874 c -13.419869,-2.764691 -22.654281,18.225029 -9.513235,24.337071 14.629152,7.32531 33.781144,-9.885732 13.372017,-12.416873 3.757197,-6.208663 10.42406,-11.125005 -2.712609,-11.881992 -0.384197,-0.02482 -0.767698,-0.04878 -1.146173,-0.03815 z"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27583"
+         d="m -64.923576,-21.037391 c 12.763084,0.824719 23.977081,15.349877 20.745729,28.0812352 -6.404851,10.7986238 -5.329172,20.0435128 3.782371,28.2340588 4.449302,4.029956 9.593118,7.396696 7.488329,16.963358 -1.009207,7.559276 -25.865044,14.088684 -35.684182,8.137828 -6.989967,0.58173 -15.353178,5.610256 -27.011474,2.25414 -18.017297,-5.901501 -9.782597,-20.518769 2.597992,-28.883557 13.865843,-5.640234 -12.279769,-16.270092 -8.634499,-26.4001817 1.06419,-11.5718102 10.157924,-20.2881283 21.013166,-24.4134823 4.940243,-2.118299 10.260894,-3.973301 15.702568,-3.973399 z"
+         style="fill:#9e6947;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27581"
+         d="m -73.214226,-11.868008 c -10.678896,0.329914 -19.960219,4.5031204 -14.059721,18.7590292 1.88871,7.2271368 9.521524,26.5881668 19.714174,21.0131698 7.164796,-4.092614 9.832048,-15.50127 13.486634,-24.1460424 4.784608,-14.1316326 -6.05606,-15.5407106 -14.747425,-15.5115396 -0.718684,-0.07727 -1.485733,-0.10392 -2.25414,-0.114556 -0.720383,-0.0098 -1.427599,-0.02201 -2.139522,0 z"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27579"
+         d="m -72.335494,-9.7284855 c 7.958768,-0.2558747 16.263209,2.0212743 17.230799,6.1893335 -0.184879,8.2852711 -8.202502,31.322038 -16.237449,30.56461 -10.59466,-0.998717 -14.693423,-21.6710787 -16.122832,-27.89020662 -0.451635,-5.82404978 7.170715,-8.60786218 15.129482,-8.86373688 z"
+         style="fill:#ff8598;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27577"
+         d="m -77.378654,0.1286012 c -4.310307,0.20257001 1.107429,13.2332778 2.063111,1.9484939 l 0.191029,-0.3438519 -0.573087,-1.18437861 C -76.367345,0.25398946 -76.932766,0.1076461 -77.378654,0.1286012 z"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27575"
+         d="m -66.222572,0.58707035 c -1.237659,-0.15226066 -2.571131,12.36680765 0.72591,6.03651045 l 0.191029,-2.25414 c -0.22866,-2.7164969 -0.570397,-3.73973893 -0.916939,-3.78237045 z"
+         style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path27569"
+         d="m -71.800613,64.505311 c -0.801294,2.2526 2.871472,18.93952 2.024905,26.705828 -17.735677,5.519162 -11.677368,-27.253008 -2.024905,-26.705828 z"
+         style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3168"
+         d="m -67.597979,64.543456 c 8.774916,0.198914 10.934917,20.727952 11.53814,27.546354 -2.895337,1.482005 -9.274158,1.422869 -11.881992,-0.878732 -0.279165,-7.145297 -4.652643,-27.012012 0.343852,-26.667622 z"
+         style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.22258437;stroke-opacity:1" />
+    </g>
+  </g>
+</svg>