[Android] Add round launcher icon

Alexandre Perraud git at videolan.org
Mon Apr 10 17:32:35 CEST 2017


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Apr 10 17:31:41 2017 +0200| [b3011363d72c629ef783b78da13c1917b74b1eea] | committer: Geoffrey Métais

Add round launcher icon

> https://code.videolan.org/videolan/vlc-android/commit/b3011363d72c629ef783b78da13c1917b74b1eea
---

 assets/images/svg/roundicon.svg              | 146 +++++++++++++++++++++++++++
 vlc-android/AndroidManifest.xml              |   1 +
 vlc-android/res/drawable-hdpi/roundicon.png  | Bin 0 -> 3546 bytes
 vlc-android/res/drawable-ldpi/roundicon.png  | Bin 0 -> 1611 bytes
 vlc-android/res/drawable-mdpi/roundicon.png  | Bin 0 -> 2366 bytes
 vlc-android/res/drawable-xhdpi/roundicon.png | Bin 0 -> 4810 bytes
 6 files changed, 147 insertions(+)

diff --git a/assets/images/svg/roundicon.svg b/assets/images/svg/roundicon.svg
new file mode 100644
index 0000000..16be91b
--- /dev/null
+++ b/assets/images/svg/roundicon.svg
@@ -0,0 +1,146 @@
+<?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="48"
+   height="48"
+   viewBox="0 0 48.000001 48.000001"
+   id="svg4826"
+   version="1.1"
+   inkscape:version="0.91 r13725"
+   sodipodi:docname="roundIcon.svg">
+  <defs
+     id="defs4828">
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath4813">
+      <path
+         id="path4815"
+         d="m 256,24 c -10,0 -16.56131,4.44436 -22,10 -7.51989,7.68159 -14,30 -14,30 l -84,252 -34,0 c -10.63636,0 -20.71454,9.30699 -24,20 L 43,456 c -4.67669,16.03434 -3,31.99999 19,32 l 194,0 194,0 c 22,-10e-6 23.67669,-15.96566 19,-32 L 434,336 c -3.28546,-10.69301 -13.36364,-20 -24,-20 l -34,0 -84,-252 c 0,0 -6.48011,-22.31841 -14,-30 -5.43869,-5.55564 -12,-10 -22,-10 z"
+         style="fill:#ff8800"
+         inkscape:connector-curvature="0" />
+    </clipPath>
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath4792">
+      <path
+         style="fill:#ff8800"
+         d="m 48.196759,963.10825 c -1.65441,1.23855 -2.321076,3.2256 -3.761719,7.51954 -1.440643,4.29394 -1.503906,4.51171 -1.503906,4.51171 l -5.265625,15.79688 -6.015625,18.05082 -3.007812,9.0234 -6.34375,0 c -2,0 -3.860873,1.5107 -4.445313,3.5039 l -3.503906,11.9199 c -1.144783,3.9115 -2.279638,7.7947 -3.429687,11.7266 -0.481394,1.6434 0.0011,2.852 0.777343,3.6875 0.481014,0.5172 1.074588,0.8913 1.621094,1.1406 0.54688,0.2429 0.920775,0.3731 1.351562,0.3731 1.004345,0 18.539258,-0.01 36.572266,-0.01 l 0,0 c 18.033008,0 35.567921,0.01 36.572266,0.01 0.430787,0 0.804682,-0.1302 1.351562,-0.3731 0.546506,-0.2493 1.14008,-0.6234 1.621094,-1.1406 0.776228,-0.8355 1.258738,-2.0441 0.777344,-3.6875 -1.150049,-3.9319 -2.284905,-7.8151 -3.429688,-11.7266 l -3.503906,-11.9199 c -0.58444,-1.9932 -2.445313,-3.5039 -4.445313,-3.5039 l -6.34375,0 -3.007812,-9.0234 -6.015625,-18.05082 -5.265625,-15.79688 c 0,0 -0.06885,-0.23443 -1.503906,-4.51171 -1.435052,-4.27728 -2.097358,-6.25133 -3.761719
 ,-7.51954 -0.831195,-0.63336 -1.999923,-0.74609 -3.044922,-0.74609 -1.044999,0 -2.208378,0.11982 -3.044922,0.74609 z"
+         id="path4794"
+         inkscape:connector-curvature="0"
+         sodipodi:nodetypes="szccccscccccsccscccccscccczsas" />
+    </clipPath>
+    <clipPath
+       clipPathUnits="userSpaceOnUse"
+       id="clipPath4239">
+      <path
+         style="fill:#ff8800"
+         d="m 255.99296,24.00989 c -10.00001,0 -16.55847,4.434001 -21.99716,9.989346 -7.51989,7.682363 -14.00568,30.009232 -14.00568,30.009232 l -83.9929,251.999282 -34.00496,0 c -1.52373,0 -3.007576,0.23857 -4.490067,0.5973 a 231.99999,231.99999 0 0 0 207.860797,129.223 231.99999,231.99999 0 0 0 145.63848,-51.53267 l -16.99218,-58.28834 c -3.28546,-10.69309 -13.37927,-19.99929 -24.01563,-19.99929 l -33.98437,0 L 291.9958,64.008468 c 0,0 -6.48579,-22.326869 -14.00568,-30.009232 -5.43869,-5.555345 -11.99716,-9.989346 -21.99716,-9.989346 z"
+         id="path4241"
+         inkscape:connector-curvature="0" />
+    </clipPath>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="16"
+     inkscape:cx="6.9159589"
+     inkscape:cy="22.558047"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1056"
+     inkscape:window-x="0"
+     inkscape:window-y="24"
+     inkscape:window-maximized="1"
+     showguides="false"
+     inkscape:snap-global="true"
+     inkscape:snap-bbox="true"
+     inkscape:bbox-paths="true"
+     inkscape:bbox-nodes="true"
+     inkscape:snap-bbox-edge-midpoints="true"
+     inkscape:snap-bbox-midpoints="true"
+     inkscape:object-paths="true"
+     inkscape:snap-smooth-nodes="true"
+     inkscape:snap-midpoints="true"
+     inkscape:object-nodes="true"
+     inkscape:snap-intersection-paths="true"
+     inkscape:snap-others="true"
+     inkscape:snap-object-midpoints="true"
+     inkscape:snap-text-baseline="true"
+     inkscape:snap-center="true">
+    <inkscape:grid
+       type="xygrid"
+       id="grid4142" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata4831">
+    <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></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1004.3622)">
+    <circle
+       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:18.75441551;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
+       id="path4162"
+       cx="24"
+       cy="1028.3622"
+       r="22"
+       inkscape:export-filename="/mnt/temp/pixel_2.png"
+       inkscape:export-xdpi="90"
+       inkscape:export-ydpi="90" />
+    <g
+       transform="matrix(0.06034483,0,0,0.06034483,8.5517235,1010.9139)"
+       id="g4807"
+       clip-path="url(#clipPath4813)"
+       inkscape:export-filename="/mnt/temp/pixel_2.png"
+       inkscape:export-xdpi="90"
+       inkscape:export-ydpi="90">
+      <path
+         id="path4795"
+         d="m 256,24 c -10,0 -16.56131,4.444363 -22,10 -7.51989,7.681589 -14,30 -14,30 l -84,252 -34,0 c -10.63636,0 -20.71454,9.30699 -24,20 L 43,456 c -4.67669,16.03434 -3,31.99999 19,32 l 194,0 194,0 c 22,-10e-6 23.67669,-15.96566 19,-32 L 434,336 c -3.28546,-10.69301 -13.36364,-20 -24,-20 l -34,0 -84,-252 c 0,0 -6.48011,-22.318411 -14,-30 -5.43869,-5.555637 -12,-10 -22,-10 z"
+         style="fill:#ff8800"
+         inkscape:connector-curvature="0" />
+      <path
+         inkscape:connector-curvature="0"
+         id="path4790"
+         d="m 376,316 c 0,0 5.33596,15.99774 8,24 3.86569,11.61172 5.72158,17.44905 -0.0566,24.10156 C 352.00038,395.99957 301.0881,408.013 256,408 210.88287,407.987 160.2209,395.52936 128,364 l 116,116 -200.46875,0 c 2.987307,4.87249 8.73663,8 18.46875,8 l 194,0 194,0 c 22,-10e-6 23.67669,-15.96566 19,-32 L 434,336 c -3.28546,-10.69301 -13.36364,-20 -24,-20 l -34,0 z"
+         style="fill:#f46e00;fill-opacity:1" />
+      <path
+         id="path3151-2-6-0"
+         sodipodi:nodetypes="cacccccssacsccacc"
+         inkscape:connector-curvature="0"
+         d="m 184,172 c 24,18 46.36799,27 72,27 25.63201,0 48,-9 72,-27 48,0 32,-108 -28,-84 -33.16814,17.49548 -55.99922,15.99974 -88,0 -60,-24 -76,84 -28,84 z m -48,144 c 0,0 -5.33263,16.0004 -8,24 -4.00162,12.00101 -6.03383,18.09576 0,24 32.2209,31.52936 82.88287,43.98701 128,44 45.0881,0.013 96,-12 127.94294,-43.89801 C 389.7212,357.44948 387.86569,351.61172 384,340 c -2.66404,-8.00226 -8,-24 -8,-24 28,0 0,-68 -16,-48 -32,32 -66.85763,40 -104,40 -37.14237,0 -72,-8 -104,-40 -16,-16 -44,48 -16,48 z"
+         style="fill:#fafafa" />
+      <path
+         sodipodi:nodetypes="sssss"
+         inkscape:connector-curvature="0"
+         id="path4246"
+         d="m 152,312 c -16.66494,51.58194 52.97315,57.34558 59.63772,19.87924 L 260,60 c 4.46875,-25.122067 -15.31793,-34.873087 -24,-8 z"
+         style="opacity:0.6;fill:#ffffff;fill-opacity:0.31372549;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+    </g>
+  </g>
+</svg>
diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 9244286..4835d10 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -68,6 +68,7 @@
         android:allowBackup="true"
         android:largeHeap="true"
         android:icon="@drawable/icon"
+        android:roundIcon="@drawable/roundicon"
         android:banner="@drawable/banner"
         android:label="@string/app_name"
         android:logo="@drawable/icon"
diff --git a/vlc-android/res/drawable-hdpi/roundicon.png b/vlc-android/res/drawable-hdpi/roundicon.png
new file mode 100644
index 0000000..a03c448
Binary files /dev/null and b/vlc-android/res/drawable-hdpi/roundicon.png differ
diff --git a/vlc-android/res/drawable-ldpi/roundicon.png b/vlc-android/res/drawable-ldpi/roundicon.png
new file mode 100644
index 0000000..1fe3cb3
Binary files /dev/null and b/vlc-android/res/drawable-ldpi/roundicon.png differ
diff --git a/vlc-android/res/drawable-mdpi/roundicon.png b/vlc-android/res/drawable-mdpi/roundicon.png
new file mode 100644
index 0000000..29dd692
Binary files /dev/null and b/vlc-android/res/drawable-mdpi/roundicon.png differ
diff --git a/vlc-android/res/drawable-xhdpi/roundicon.png b/vlc-android/res/drawable-xhdpi/roundicon.png
new file mode 100644
index 0000000..2029edc
Binary files /dev/null and b/vlc-android/res/drawable-xhdpi/roundicon.png differ



More information about the Android mailing list