[Android] Improve the audio player control icons for large screens

Nicolas Pomepuy git at videolan.org
Thu Dec 23 09:45:07 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Dec 22 07:52:11 2021 +0100| [9e66ec3026ec25e5e586265be2cca3ee9248e3dc] | committer: Nicolas Pomepuy

Improve the audio player control icons for large screens

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

 .../assets/images/svg/ic_playlist_delete.svg       | 61 ++++++++++++++++++++++
 .../src/main/res/drawable/ic_playlist_delete.xml   |  9 ++--
 .../src/main/res/drawable/ic_playlist_movedown.xml | 13 ++---
 .../src/main/res/drawable/ic_playlist_moveup.xml   | 13 ++---
 4 files changed, 72 insertions(+), 24 deletions(-)

diff --git a/application/resources/assets/images/svg/ic_playlist_delete.svg b/application/resources/assets/images/svg/ic_playlist_delete.svg
new file mode 100644
index 000000000..28fdd104b
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_playlist_delete.svg
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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"
+   height="24px"
+   viewBox="0 0 24 24"
+   width="24px"
+   fill="#000000"
+   version="1.1"
+   id="svg6"
+   sodipodi:docname="ic_playlist_delete.svg"
+   inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
+  <metadata
+     id="metadata12">
+    <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>
+  <defs
+     id="defs10" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="2560"
+     inkscape:window-height="1376"
+     id="namedview8"
+     showgrid="false"
+     inkscape:zoom="9.8333333"
+     inkscape:cx="11.898305"
+     inkscape:cy="12"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg6" />
+  <path
+     d="M0 0h24v24H0V0z"
+     fill="none"
+     id="path2" />
+  <path
+     d="m 17.733788,6.275313 c -0.354948,-0.3549488 -0.928327,-0.3549488 -1.283276,0 L 12,10.716724 7.5494882,6.2662117 c -0.3549489,-0.3549488 -0.9283277,-0.3549488 -1.2832765,0 -0.3549488,0.3549488 -0.3549488,0.9283276 0,1.2832765 L 10.716724,12 6.2662117,16.450512 c -0.3549488,0.354949 -0.3549488,0.928328 0,1.283276 0.3549488,0.354949 0.9283276,0.354949 1.2832765,0 L 12,13.283276 l 4.450512,4.450512 c 0.354949,0.354949 0.928328,0.354949 1.283276,0 0.354949,-0.354948 0.354949,-0.928327 0,-1.283276 L 13.283276,12 17.733788,7.5494882 c 0.345848,-0.3458476 0.345848,-0.9283277 0,-1.2741752 z"
+     id="path4"
+     inkscape:connector-curvature="0"
+     style="stroke-width:0.91012514" />
+</svg>
diff --git a/application/resources/src/main/res/drawable/ic_playlist_delete.xml b/application/resources/src/main/res/drawable/ic_playlist_delete.xml
index 87500942b..369d3cc50 100644
--- a/application/resources/src/main/res/drawable/ic_playlist_delete.xml
+++ b/application/resources/src/main/res/drawable/ic_playlist_delete.xml
@@ -1,11 +1,12 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:tools="http://schemas.android.com/tools"
-        android:width="32dp"
-        android:height="32dp"
+        android:width="24dp"
+        android:height="24dp"
         android:viewportWidth="24"
         android:viewportHeight="24">
     <path
             android:fillColor="?attr/colorControlNormal"
-            tools:fillColor="@color/white"
-            android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z"/>
+            android:pathData="m17.7338,6.2753c-0.3549,-0.3549 -0.9283,-0.3549 -1.2833,0L12,10.7167 7.5495,6.2662c-0.3549,-0.3549 -0.9283,-0.3549 -1.2833,0 -0.3549,0.3549 -0.3549,0.9283 0,1.2833L10.7167,12 6.2662,16.4505c-0.3549,0.3549 -0.3549,0.9283 0,1.2833 0.3549,0.3549 0.9283,0.3549 1.2833,0L12,13.2833l4.4505,4.4505c0.3549,0.3549 0.9283,0.3549 1.2833,0 0.3549,-0.3549 0.3549,-0.9283 0,-1.2833L13.2833,12 17.7338,7.5495c0.3458,-0.3458 0.3458,-0.9283 0,-1.2742z"
+            android:strokeWidth="0.91012514"
+            tools:fillColor="@color/white" />
 </vector>
diff --git a/application/resources/src/main/res/drawable/ic_playlist_movedown.xml b/application/resources/src/main/res/drawable/ic_playlist_movedown.xml
index cea7e32ba..9d6e3aa04 100644
--- a/application/resources/src/main/res/drawable/ic_playlist_movedown.xml
+++ b/application/resources/src/main/res/drawable/ic_playlist_movedown.xml
@@ -1,18 +1,11 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:tools="http://schemas.android.com/tools"
-        android:width="32dp"
-        android:height="32dp"
+        android:width="24dp"
+        android:height="24dp"
         android:viewportWidth="24"
         android:viewportHeight="24">
     <path
             tools:fillColor="@color/white"
-            android:fillAlpha="1"
             android:fillColor="?attr/colorControlNormal"
-            android:fillType="nonZero"
-            android:pathData="m12,17a1,1 0,0 1,-0.707 -0.293l-6.9902,-6.9902 -0.01,-0.01a1,1 0,0 1,-0.293 -0.707,1 1,0 0,1 1,-1 1,1 0,0 1,0.707 0.293l6.293,6.2929 6.2832,-6.2832a1,1 0,0 1,0.7168 -0.3027,1 1,0 0,1 1,1 1,1 0,0 1,-0.293 0.707l-6.9902,6.9903A1,1 0,0 1,12 17Z"
-            android:strokeWidth="2"
-            android:strokeAlpha="1"
-            android:strokeColor="#00000000"
-            android:strokeLineCap="round"
-            android:strokeLineJoin="round" />
+            android:pathData="M7.71,9.29l3.88,3.88l3.88,-3.88c0.39,-0.39 1.02,-0.39 1.41,0l0,0c0.39,0.39 0.39,1.02 0,1.41l-4.59,4.59c-0.39,0.39 -1.02,0.39 -1.41,0L6.29,10.7c-0.39,-0.39 -0.39,-1.02 0,-1.41l0,0C6.68,8.91 7.32,8.9 7.71,9.29z" />
 </vector>
diff --git a/application/resources/src/main/res/drawable/ic_playlist_moveup.xml b/application/resources/src/main/res/drawable/ic_playlist_moveup.xml
index 4e371fe46..82cbc56c1 100644
--- a/application/resources/src/main/res/drawable/ic_playlist_moveup.xml
+++ b/application/resources/src/main/res/drawable/ic_playlist_moveup.xml
@@ -1,18 +1,11 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:tools="http://schemas.android.com/tools"
-        android:width="32dp"
-        android:height="32dp"
+        android:width="24dp"
+        android:height="24dp"
         android:viewportWidth="24"
         android:viewportHeight="24">
     <path
             tools:fillColor="@color/white"
-            android:fillAlpha="1"
             android:fillColor="?attr/colorControlNormal"
-            android:fillType="nonZero"
-            android:pathData="m12,7a1,1 0,0 0,-0.707 0.293l-6.9902,6.9902 -0.01,0.01a1,1 0,0 0,-0.293 0.707,1 1,0 0,0 1,1 1,1 0,0 0,0.707 -0.293l6.293,-6.2929 6.2832,6.2832a1,1 0,0 0,0.7168 0.3027,1 1,0 0,0 1,-1 1,1 0,0 0,-0.293 -0.707l-6.9902,-6.9903A1,1 0,0 0,12 7Z"
-            android:strokeWidth="2"
-            android:strokeAlpha="1"
-            android:strokeColor="#00000000"
-            android:strokeLineCap="round"
-            android:strokeLineJoin="round" />
+            android:pathData="M7.71,15.29l3.88,-3.88l3.88,3.88c0.39,0.39 1.02,0.39 1.41,0l0,0c0.39,-0.39 0.39,-1.02 0,-1.41l-4.59,-4.59c-0.39,-0.39 -1.02,-0.39 -1.41,0l-4.59,4.59c-0.39,0.39 -0.39,1.02 0,1.41l0,0C6.68,15.67 7.32,15.68 7.71,15.29z" />
 </vector>



More information about the Android mailing list