contrib/tnitter: add icon
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 10 Nov 2015 17:44:49 +0000 (12:44 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 11 Nov 2015 20:25:26 +0000 (15:25 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/tnitter/Makefile
contrib/tnitter/art/icon.svg [new file with mode: 0644]

index ded78ca..9ac2dc9 100644 (file)
@@ -9,10 +9,14 @@ bin/tnitter: $(shell ../../bin/nitls -M src/tnitter_app.nit)
        ../../bin/nitc -o bin/tnitter src/tnitter_app.nit -m linux -D tnitter_server_uri=http://$(SERVER)
 
 android: bin/tnitter.apk
-bin/tnitter.apk: $(shell ../../bin/nitls -M src/tnitter_app_android.nit)
+bin/tnitter.apk: $(shell ../../bin/nitls -M src/tnitter_app_android.nit) res/drawable-ldpi/icon.png
        mkdir -p bin/
        ../../bin/nitc -o bin/tnitter.apk src/tnitter_app_android.nit -D tnitter_server_uri=http://$(SERVER)
 
-android-release: $(shell ../../bin/nitls -M src/tnitter_app_android.nit)
+android-release: $(shell ../../bin/nitls -M src/tnitter_app_android.nit) res/drawable-ldpi/icon.png
        mkdir -p bin/
        ../../bin/nitc -o bin/tnitter.apk src/tnitter_app_android.nit --release -D tnitter_server_uri=http://tnitter.xymus.net
+
+res/drawable-ldpi/icon.png: art/icon.svg
+       mkdir -p res
+       ../inkscape_tools/bin/svg_to_icons art/icon.svg --android --out res/
diff --git a/contrib/tnitter/art/icon.svg b/contrib/tnitter/art/icon.svg
new file mode 100644 (file)
index 0000000..2852416
--- /dev/null
@@ -0,0 +1,177 @@
+<?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:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="128"
+   height="128"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.5 r10040"
+   sodipodi:docname="icon.svg">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#424242"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="2.8"
+     inkscape:cx="55.835349"
+     inkscape:cy="64.659054"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1025"
+     inkscape:window-height="882"
+     inkscape:window-x="3574"
+     inkscape:window-y="219"
+     inkscape:window-maximized="0" />
+  <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(0,-924.36218)">
+    <g
+       id="g3849"
+       transform="matrix(0.86316133,0,0,0.92568956,1.3546541,74.131119)">
+      <g
+         transform="matrix(0.98889119,0,0,1.0112336,-3.8034556,-1.9096758)"
+         style="font-size:163.82507324px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#0056b8;fill-opacity:1;stroke:none;font-family:Sans"
+         id="text3003">
+        <path
+           style="font-variant:normal;font-weight:bold;font-stretch:normal;fill:#ffffff;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m 16.28125,918.6875 c -4.705635,13.04532 -9.4589216,26.10668 -14.1875,39.15625 7.0084772,1.03459 12.946005,7.14991 20.34375,5.65625 3.998453,-10.46648 12.089657,-21.32521 23.90625,-22.71875 0.02185,23.88035 0.939134,47.95599 -0.5,71.71875 -3.223782,4.5917 -10.820374,1.1397 -14.3125,4.2188 -2.65775,6.4155 -0.05103,13.5408 -1.25,20.2187 20.708333,0 41.416667,0 62.125,0 -1.587381,-6.9919 2.030222,-14.9268 -2.0625,-21.3125 -4.464239,-0.8933 -12.884373,1.1467 -14,-4.9062 -0.367202,-23.38258 -0.54133,-47.10622 0.0625,-70.2813 12.170603,1.57376 18.880393,12.93168 24.84375,22.28125 5.64266,3.82234 10.89596,-3.30022 16.4375,-3.6875 5.18679,-5.23592 -1.4805,-12.19999 -3,-17.5 -2.59942,-8.18301 -6.21861,-16.07757 -9.1875,-24.15625 -29.583333,0 -59.166667,0 -88.75,0 l -0.336336,0.94174 -0.132414,0.37076 z"
+           id="path3868"
+           inkscape:connector-curvature="0" />
+        <path
+           d="m 102.74224,921.36982 -83.16697,0 -12.2868809,33.91179 12.2868809,4.75092 c 5.733871,-13.92511 17.201643,-23.42698 28.177912,-23.42698 2.457374,0 2.785026,0.81913 2.785026,5.8977 l 0,62.90885 c 0,6.3892 -0.491476,8.6827 -1.9659,10.321 -1.474425,1.802 -5.570057,3.2765 -9.174205,3.4403 l -4.914752,0.3276 0,13.4337 53.678458,0 0,-13.4337 -4.914752,-0.3276 c -3.604148,-0.1638 -7.69978,-1.6383 -9.174204,-3.4403 -1.474424,-1.6383 -1.965901,-3.9318 -1.965901,-10.321 l 0,-63.40032 c 0,-5.73388 3e-6,-5.73388 3.276502,-5.73388 5.733872,0 11.959236,3.11268 18.020762,9.01038 3.76797,3.60415 5.07858,5.40623 10.648634,14.74425 l 11.95923,-4.75092 -13.26984,-33.91179"
+           style="font-variant:normal;font-weight:bold;font-stretch:normal;fill:#0056b8;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           id="path3866"
+           inkscape:connector-curvature="0"
+           sodipodi:nodetypes="ccccsssccccccccssscccc" />
+      </g>
+    </g>
+    <g
+       id="g3854"
+       transform="translate(-64.407738,82.937113)">
+      <g
+         transform="translate(228.55805,10.397392)"
+         id="g3814">
+        <path
+           style="font-size:41.02794266px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f9f9f9;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m -145.34375,990.375 c -3.7065,0.9099 -5.59041,0.5441 -9.3125,0.375 -6.18402,-1.45274 -11.54689,5.24506 -6.28125,8.46875 3.24988,0.2177 0.53746,6.75195 0.9375,8.53125 -6.09851,1.7138 -2.2516,10.9927 4.3125,7.5625 7.61458,0 15.22917,0 22.84375,0 2.48858,-6.3131 -3.58762,-5.9391 -3.03125,-10.8125 0.9533,-5.30171 0.005,-13.15379 -6.53125,-14 -0.95852,-0.19727 -1.96125,-0.17788 -2.9375,-0.125 z m -1.21875,8.4375 c -0.27832,2.8197 0.84219,6.834 -0.40625,9.0937 -3.94943,1.0063 -2.06697,-7.0314 -1.375,-8.56245 0.55768,-0.26017 1.16587,-0.46001 1.78125,-0.53125 z"
+           id="path3784"
+           inkscape:connector-curvature="0" />
+        <path
+           style="font-size:41.02794266px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f9f9f9;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m -127.15625,981.375 c -4.82475,0.23855 -7.38628,6.89888 -3.78125,10.21875 -5.25095,-1.6637 -5.64832,8.62805 -1,7.75 0.67533,2.21505 0.27341,6.12945 0,8.40625 -6.30526,1.3829 -2.49822,11.0989 4.15625,7.5625 6.25663,1.6232 13.32182,-0.9694 8.87245,-7.1129 -4.94093,-1.3009 -0.7382,-9.68127 -2.12245,-13.6996 -0.01,-3.21562 -0.90884,-3.73474 0.3125,-6.6875 0.41635,-3.61723 -2.80904,-6.84579 -6.4375,-6.4375 z"
+           id="path3786"
+           inkscape:connector-curvature="0" />
+        <path
+           style="font-size:41.02794266px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f9f9f9;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m -114.125,985.9375 c 0.1473,3.22183 -2.60427,5.82702 -5.90625,5.5 -2.03484,7.72234 5.32745,6.04755 3.09375,13.9687 -1.04679,4.9714 2.04444,10.8915 7.6875,10.2813 4.36016,0.229 10.50688,-2.9576 10.508602,-6.9182 -2.092672,-5.2734 -5.562622,-4.1403 -7.539852,-2.6443 -3.5525,-9.40667 6.13994,-5.5684 5.625,-11.9375 -0.64163,-4.90004 -7.61276,-3.47057 -6.625,-10 -2.04644,0.73016 -7.2787,-1.70476 -6.84375,1.75 z"
+           id="path3788"
+           inkscape:connector-curvature="0" />
+        <path
+           style="font-size:41.02794266px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f9f9f9;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m -95.21875,985.9375 c 0.209507,3.34071 -2.682917,5.76623 -5.90625,5.5 -2.03484,7.72234 5.327447,6.04755 3.09375,13.9687 -1.081014,4.9828 2.04361,10.8619 7.6875,10.2813 4.364539,0.2201 10.502894,-2.9526 10.508602,-6.9182 -2.121768,-5.2406 -5.492611,-4.1707 -7.539852,-2.6443 -3.552504,-9.40667 6.139936,-5.5684 5.625,-11.9375 -0.641625,-4.90004 -7.612761,-3.47057 -6.625,-10 -2.046435,0.73016 -7.278705,-1.70476 -6.84375,1.75 z"
+           id="path3790"
+           inkscape:connector-curvature="0" />
+        <path
+           style="font-size:41.02794266px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f9f9f9;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m -70.4375,990.40625 c -10.317858,0.18203 -15.164879,14.21235 -8.09375,21.21875 6.156001,6.7944 18.754788,4.7181 22.108246,-4.0137 -2.901846,-3.5835 -0.826254,-1.2468 -0.764496,-6.9238 -0.0087,-6.87489 -6.930086,-11.07001 -13.25,-10.28125 z m 6.53125,14.46875 c -1.085489,2.6852 -5.862833,3.4887 -6.3125,0 2.104167,0 4.208333,0 6.3125,0 z"
+           id="path3792"
+           inkscape:connector-curvature="0" />
+        <path
+           style="font-size:41.02794266px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#f9f9f9;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold"
+           d="m -42.75,990.375 c -4.554778,1.13106 -9.064199,-0.29303 -14.0625,1.5625 -2.776314,0.27851 -2.857472,8.7305 1.28125,7.40625 -0.447767,3.18295 2.23733,9.34005 -2.90625,9.12505 -2.57007,8.5179 4.891488,7.0043 11,6.8437 6.202839,3.2417 8.353387,-6.8349 2.9375,-7.5625 0.212169,-1.4815 -2.076866,-9.08338 1.3125,-6.7188 5.874468,2.0588 9.501251,-6.7851 4.25,-9.7812 -1.118544,-0.73603 -2.487924,-1.01303 -3.8125,-0.875 z"
+           id="path3794"
+           inkscape:connector-curvature="0" />
+      </g>
+      <text
+         xml:space="preserve"
+         style="font-size:41.02794266px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#0056b8;fill-opacity:1;stroke:none;font-family:Sans"
+         x="66.978233"
+         y="1023.7053"
+         id="text3007"
+         sodipodi:linespacing="125%"><tspan
+           sodipodi:role="line"
+           id="tspan3009"
+           x="66.978233"
+           y="1023.7053"
+           style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#0056b8;fill-opacity:1;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold">nitter</tspan></text>
+    </g>
+    <path
+       style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m -63.214286,998.07647 c 63.66311686,-15.23793 65.8748289,76.72883 26.785715,76.07143 -28.928572,1.0714 -79.285719,-32.1428 -79.285719,-32.1428"
+       id="path3908"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="ccc" />
+    <g
+       id="g3962"
+       transform="translate(-12.142857,0)">
+      <path
+         inkscape:connector-curvature="0"
+         id="path3920"
+         d="m 66.46875,970.4375 c -6.562779,-0.13271 -10.025109,9.67333 -3.75,12.625 0.789881,3.37687 -1.193479,5.13275 -3.125,7.34375 -2.690748,4.45074 1.951528,11.44545 7.03125,8.65625 8.687389,0.20255 17.37466,0.41161 26.0625,0.59375 1.467354,-3.91075 0.925253,-8.74606 -2.40625,-11.5625 1.123785,-6.51616 0.206678,-16.2791 -7.90625,-17.46875 -5.237659,-0.27805 -10.592185,0.53026 -15.90625,-0.1875 z"
+         style="font-size:41.03342056px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3922"
+         d="m 98.8125,965.40625 c -4.305692,-0.1128 -7.186478,4.3379 -8,7.71875 -4.62439,1.19185 -6.361317,7.85092 -3.1875,11.03125 -0.387949,2.87359 -1.551682,4.64587 -4.375,5.03125 -5.108778,2.82518 -3.372908,12.3355 3.0625,11.25 4.274032,2.0206 13.149269,6.9298 14.6875,-0.71875 0.13221,-3.61996 -2.518059,-7.63625 0.4375,-11.15625 2.72294,-3.92152 2.25551,-9.07832 5.40625,-12.75 1.84186,-5.05465 -2.63792,-10.98276 -8.03125,-10.40625 z"
+         style="font-size:41.03342056px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3924"
+         d="m 112.0625,975.03125 c -2.26829,0.95425 -3.80408,4.80933 -6.9375,2.375 -3.70026,-2.27152 -7.917357,4.18214 -6.3125,8.09375 0.285868,3.78414 -4.813994,5.35969 -5.46875,9.125 -3.769874,7.2045 3.673573,14.1293 10.59375,14.4375 3.8453,0.2145 10.07097,0 8.34375,-5.3125 0.37689,-2.6527 -0.76196,-6.06227 -3,-7.03125 1.99291,-2.87685 5.38998,0.29568 7.16906,-0.002 4.30747,-1.87365 5.36454,-7.44265 1.79969,-10.65407 -0.81179,-2.45399 4.36213,-4.02444 1.34375,-6.78125 -1.85623,-2.15224 -4.54547,-4.45958 -7.53125,-4.25 z"
+         style="font-size:41.03342056px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3926"
+         d="m 118.375,988.5 c -4.16506,0.59412 -6.41213,4.50504 -6.78125,8.375 -3.39415,2.17572 -8.36499,3.8913 -9.5,8.625 -2.465245,9.0183 8.04775,15.7027 16.09375,14.9375 1.41453,-3.5791 3.21699,-9.2294 0.40625,-11.8125 3.50413,-0.3267 7.36143,3.3414 10.90625,0.4688 3.88412,-1.6793 1.70801,-6.2144 1.15625,-8.8126 5.82357,-0.573 3.14468,-7.85809 -0.3125,-10.0312 -2.2809,-2.09653 -5.07008,-0.2614 -7.0625,0.5625 -1.58487,-0.80025 -2.94233,-2.5364 -4.90625,-2.3125 z"
+         style="font-size:41.03342056px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3928"
+         d="m 122.71875,1006.4062 c -11.66736,-0.3145 -18.65649,15.0468 -11.46875,23.9688 3.1584,4.507 8.8431,6.3245 14.09375,7.0938 -1.35031,-3.9148 3.0842,-2.2416 5.09375,-4.0313 12.43975,-5.172 7.76061,-26.1891 -5.25,-26.9375 -0.80353,-0.1488 -1.6497,-0.157 -2.46875,-0.094 z"
+         style="font-size:41.03342056px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path3930"
+         d="m 132.8125,1025.125 c -2.60576,-0.045 -5.12599,1.3837 -5.75,3.8125 -1.86399,-0.6881 -4.54349,1.1734 -5.625,-1.5937 -3.65456,-4.677 -11.78915,-0.8158 -10.59375,5 0.47245,4.1766 0.24394,8.8597 1.09375,12.5 3.4265,3.8137 8.662,0.5493 11.71875,-1.5626 3.09382,-1.0345 0.61555,3.9955 3.03125,5.375 4.02656,5.4763 13.85638,2.4145 13.5,-4.5937 -1.53003,-5.9633 1.22754,-13.5727 -3.8125,-18.1563 -1.04157,-0.6897 -2.33061,-0.8868 -3.5625,-0.7812 z"
+         style="font-size:41.03342056px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold" />
+    </g>
+    <text
+       sodipodi:linespacing="125%"
+       id="text3876"
+       style="font-size:41.03342056000000326px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:-7px;word-spacing:0px;fill:#0056b8;fill-opacity:1;stroke:none;font-family:Sans"
+       xml:space="preserve"
+       transform="translate(113.57143,-1.0714286)"><textPath
+         xlink:href="#path3908"
+         id="textPath3910"><tspan
+   id="tspan3878"
+   style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#0056b8;fill-opacity:1;font-family:URW Bookman L;-inkscape-font-specification:URW Bookman L Bold;letter-spacing:-7px">nitter</tspan></textPath></text>
+  </g>
+</svg>