[Android] Add new lock player icon

Alexandre Perraud git at videolan.org
Tue Nov 2 13:00:50 UTC 2021


vlc-android | branch: master | Alexandre Perraud <alexandre at videolan.org> | Fri Sep 17 15:24:48 2021 +0200| [690f316fcb403ff8b0ebbd6e1e562e370742917c] | committer: Nicolas Pomepuy

Add new lock player icon

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

 .../resources/assets/images/svg/ic_lock_player.svg | 71 ----------------------
 .../assets/images/svg/ic_locked_player.svg         | 71 ----------------------
 .../src/main/res/drawable/ic_lock_player.xml       | 21 +++----
 3 files changed, 9 insertions(+), 154 deletions(-)

diff --git a/application/resources/assets/images/svg/ic_lock_player.svg b/application/resources/assets/images/svg/ic_lock_player.svg
deleted file mode 100755
index 3ba19ff29..000000000
--- a/application/resources/assets/images/svg/ic_lock_player.svg
+++ /dev/null
@@ -1,71 +0,0 @@
-<?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="24"
-   height="24"
-   id="svg4682"
-   version="1.1" inkscape:version="0.92.3 (2405546, 2018-03-11)"
-   sodipodi:docname="ic_lock_player.svg"
-   inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
-   inkscape:export-xdpi="90"
-   inkscape:export-ydpi="90">
-  <defs
-     id="defs4684" />
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2" inkscape:zoom="11.2" inkscape:cx="18.380584" inkscape:cy="14.478439"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="true"
-     inkscape:window-width="960" inkscape:window-height="836" inkscape:window-x="640"
-      inkscape:window-y="27"
-     inkscape:window-maximized="0"
-     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-intersection-paths="true"
-     inkscape:snap-smooth-nodes="true"
-     inkscape:snap-object-midpoints="true"
-     inkscape:snap-center="true">
-    <inkscape:grid
-       type="xygrid" id="grid3002" empspacing="4" />
-  </sodipodi:namedview>
-  <metadata
-     id="metadata4687">
-    <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,-1028.3622)">
-    <path
-       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#212121;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
-        d="m 12,1032.3622 a 4,4 0 0 0 -4,4 1,1 0 0 0 1,1 1,1 0 0 0 1,-1 1.9999826,1.9999826 0 0 1 2,-2 1.9999826,1.9999826 0 0 1 2,2 v 3 H 8 c -1.107999,0 -2,0.892 -2,2 v 5 c 0,1.108 0.892001,2 2,2 h 8 c 1.108,0 2,-0.892 2,-2 v -5 c 0,-1.108 -0.892,-2 -2,-2 v -3 a 4,4 0 0 0 -4,-4 z"
-        id="path10530"
-       inkscape:connector-curvature="0" />
-  </g>
-</svg>
diff --git a/application/resources/assets/images/svg/ic_locked_player.svg b/application/resources/assets/images/svg/ic_locked_player.svg
deleted file mode 100755
index 2d6a5b5c8..000000000
--- a/application/resources/assets/images/svg/ic_locked_player.svg
+++ /dev/null
@@ -1,71 +0,0 @@
-<?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="24"
-   height="24"
-   id="svg4682"
-   version="1.1" inkscape:version="0.92.3 (2405546, 2018-03-11)"
-   sodipodi:docname="ic_locked_player.svg"
-   inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
-   inkscape:export-xdpi="90"
-   inkscape:export-ydpi="90">
-  <defs
-     id="defs4684" />
-  <sodipodi:namedview
-     id="base"
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1.0"
-     inkscape:pageopacity="0.0"
-     inkscape:pageshadow="2" inkscape:zoom="11.2" inkscape:cx="18.534863" inkscape:cy="12.600811"
-     inkscape:document-units="px"
-     inkscape:current-layer="layer1"
-     showgrid="true"
-     inkscape:window-width="960" inkscape:window-height="836" inkscape:window-x="640"
-      inkscape:window-y="27"
-     inkscape:window-maximized="0"
-     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-intersection-paths="true"
-     inkscape:snap-smooth-nodes="true"
-     inkscape:snap-object-midpoints="true"
-     inkscape:snap-center="true">
-    <inkscape:grid
-       type="xygrid" id="grid3002" empspacing="4" />
-  </sodipodi:namedview>
-  <metadata
-     id="metadata4687">
-    <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,-1028.3622)">
-    <path
-       style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#212121;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:0;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate"
-        d="m 12,1033.3622 a 4,4 0 0 0 -4,4 v 2 c -1.107999,0 -2,0.892 -2,2 v 5 c 0,1.108 0.892001,2 2,2 h 8 c 1.108,0 2,-0.892 2,-2 v -5 c 0,-1.108 -0.892,-2 -2,-2 v -2 a 4,4 0 0 0 -4,-4 z m 0,2 a 1.9999826,1.9999826 0 0 1 2,2 v 2 h -4 v -2 a 1.9999826,1.9999826 0 0 1 2,-2 z"
-        id="path6099"
-       inkscape:connector-curvature="0" />
-  </g>
-</svg>
diff --git a/application/resources/src/main/res/drawable/ic_lock_player.xml b/application/resources/src/main/res/drawable/ic_lock_player.xml
index 8e571b5b1..387ba95cb 100644
--- a/application/resources/src/main/res/drawable/ic_lock_player.xml
+++ b/application/resources/src/main/res/drawable/ic_lock_player.xml
@@ -1,16 +1,13 @@
+<!--From Google Fonts lock_open_black_48dp.svg-->
+
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
-    android:width="36dp"
-    android:height="36dp"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:width="48dp"
+    android:height="48dp"
     android:viewportWidth="24"
     android:viewportHeight="24">
-    <path
-        android:fillAlpha="1"
-        android:fillColor="?attr/player_icon_color"
-        android:fillType="nonZero"
-        android:pathData="m12,4a4,4 0,0 0,-4 4,1 1,0 0,0 1,1 1,1 0,0 0,1 -1,2 2,0 0,1 2,-2 2,2 0,0 1,2 2v3L8,11c-1.108,0 -2,0.892 -2,2v5c0,1.108 0.892,2 2,2h8c1.108,0 2,-0.892 2,-2v-5c0,-1.108 -0.892,-2 -2,-2v-3a4,4 0,0 0,-4 -4z"
-        android:strokeWidth="0"
-        android:strokeAlpha="1"
-        android:strokeColor="#000000"
-        android:strokeLineCap="round"
-        android:strokeLineJoin="round" />
+  <path
+      android:pathData="M12,13c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM18,8h-1L17,6c0,-2.76 -2.24,-5 -5,-5 -2.28,0 -4.27,1.54 -4.84,3.75 -0.14,0.54 0.18,1.08 0.72,1.22 0.53,0.14 1.08,-0.18 1.22,-0.72C9.44,3.93 10.63,3 12,3c1.65,0 3,1.35 3,3v2L6,8c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2L20,10c0,-1.1 -0.9,-2 -2,-2zM18,19c0,0.55 -0.45,1 -1,1L7,20c-0.55,0 -1,-0.45 -1,-1v-8c0,-0.55 0.45,-1 1,-1h10c0.55,0 1,0.45 1,1v8z"
+      tools:fillColor="#ffffff"
+      android:fillColor="?attr/player_icon_color"/>
 </vector>



More information about the Android mailing list