[Android] Add mark_as_played and mark_all_as_played context icons

Alexandre Perraud git at videolan.org
Wed Oct 21 09:02:40 CEST 2020


vlc-android | branch: 3.3.x | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon Sep 14 15:04:50 2020 +0200| [49955757504936a45ef0a0e506c8914083776c43] | committer: Nicolas Pomepuy

Add mark_as_played and mark_all_as_played context icons

(cherry picked from commit 2883c1ffb840ed125fee1632b43c503c91978e5b)

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

 .../images/svg/ic_ctx_mark_all_as_played.svg       | 80 +++++++++++++++++++++
 .../assets/images/svg/ic_ctx_mark_as_played.svg    | 81 ++++++++++++++++++++++
 .../res/drawable/ic_ctx_mark_all_as_played.xml     | 17 +++--
 .../main/res/drawable/ic_ctx_mark_as_played.xml    | 16 ++---
 4 files changed, 177 insertions(+), 17 deletions(-)

diff --git a/application/resources/assets/images/svg/ic_ctx_mark_all_as_played.svg b/application/resources/assets/images/svg/ic_ctx_mark_all_as_played.svg
new file mode 100644
index 0000000000..108813b627
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_ctx_mark_all_as_played.svg
@@ -0,0 +1,80 @@
+<?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="40"
+   height="40"
+   viewBox="0 0 40 40"
+   version="1.1"
+   id="SVGRoot"
+   inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
+   sodipodi:docname="ic_ctx_mark_all_as_played.svg">
+  <defs
+     id="defs7678" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="7.9999999"
+     inkscape:cx="44.028939"
+     inkscape:cy="-2.9777142"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1043"
+     inkscape:window-x="1920"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:grid-bbox="true"
+     inkscape:snap-page="true"
+     inkscape:snap-text-baseline="true"
+     inkscape:snap-center="true"
+     inkscape:snap-object-midpoints="true"
+     inkscape:snap-midpoints="true"
+     inkscape:snap-smooth-nodes="true"
+     inkscape:snap-intersection-paths="true"
+     inkscape:object-paths="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:grid
+       type="xygrid"
+       id="grid8234" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7681">
+    <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,-8)">
+    <path
+       inkscape:connector-curvature="0"
+       style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="m 25,20.999996 -6,6 3,3 6,-6 z m 10,0 -13,13 -7,-7 -3,3 10,10 16,-16 z m -30,6 -3,3 10,10 3,-3 z"
+       id="path2101" />
+  </g>
+</svg>
diff --git a/application/resources/assets/images/svg/ic_ctx_mark_as_played.svg b/application/resources/assets/images/svg/ic_ctx_mark_as_played.svg
new file mode 100644
index 0000000000..782f9b3e03
--- /dev/null
+++ b/application/resources/assets/images/svg/ic_ctx_mark_as_played.svg
@@ -0,0 +1,81 @@
+<?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="40"
+   height="40"
+   viewBox="0 0 40 40"
+   version="1.1"
+   id="SVGRoot"
+   inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
+   sodipodi:docname="ic_ctx_mark_as_played.svg">
+  <defs
+     id="defs7678" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="7.9999999"
+     inkscape:cx="44.028939"
+     inkscape:cy="-2.9777142"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1043"
+     inkscape:window-x="1920"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:grid-bbox="true"
+     inkscape:snap-page="true"
+     inkscape:snap-text-baseline="true"
+     inkscape:snap-center="true"
+     inkscape:snap-object-midpoints="true"
+     inkscape:snap-midpoints="true"
+     inkscape:snap-smooth-nodes="true"
+     inkscape:snap-intersection-paths="true"
+     inkscape:object-paths="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:grid
+       type="xygrid"
+       id="grid8234" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata7681">
+    <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,-8)">
+    <path
+       style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 31,21 18,34 11,27 8,30 18,40 34,24 Z"
+       id="path2103"
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="ccccccc" />
+  </g>
+</svg>
diff --git a/application/resources/src/main/res/drawable/ic_ctx_mark_all_as_played.xml b/application/resources/src/main/res/drawable/ic_ctx_mark_all_as_played.xml
index dcbf8fb192..e8a74f0ac7 100644
--- a/application/resources/src/main/res/drawable/ic_ctx_mark_all_as_played.xml
+++ b/application/resources/src/main/res/drawable/ic_ctx_mark_all_as_played.xml
@@ -3,7 +3,7 @@
   ~  ic_ctx_mark_all_as_played.xml
   ~ **************************************************************************
   ~ Copyright © 2020 VLC authors and VideoLAN
-  ~ Author: Nicolas POMEPUY
+  ~ Author: Alexandre PERRAUD
   ~ This program is free software; you can redistribute it and/or modify
   ~ it under the terms of the GNU General Public License as published by
   ~ the Free Software Foundation; either version 2 of the License, or
@@ -21,13 +21,12 @@
   ~
   ~
   -->
-
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="40dp"
-        android:height="40dp"
-        android:viewportWidth="24"
-        android:viewportHeight="24">
-    <path
-            android:fillColor="#000000"
-            android:pathData="M18,7l-1.41,-1.41 -6.34,6.34 1.41,1.41L18,7zM22.24,5.59L11.66,16.17 7.48,12l-1.41,1.41L11.66,19l12,-12 -1.42,-1.41zM0.41,13.41L6,19l1.41,-1.41L1.83,12 0.41,13.41z" />
+    android:width="40dp"
+    android:height="40dp"
+    android:viewportWidth="40"
+    android:viewportHeight="40">
+  <path
+      android:pathData="m25,13 l-6,6 3,3 6,-6zM35,13 L22,26 15,19 12,22 22,32 38,16zM5,19 L2,22 12,32 15,29z"
+      android:fillColor="#000000"/>
 </vector>
diff --git a/application/resources/src/main/res/drawable/ic_ctx_mark_as_played.xml b/application/resources/src/main/res/drawable/ic_ctx_mark_as_played.xml
index 0638db3a5d..221ff163e3 100644
--- a/application/resources/src/main/res/drawable/ic_ctx_mark_as_played.xml
+++ b/application/resources/src/main/res/drawable/ic_ctx_mark_as_played.xml
@@ -3,7 +3,7 @@
   ~  ic_ctx_mark_as_played.xml
   ~ **************************************************************************
   ~ Copyright © 2020 VLC authors and VideoLAN
-  ~ Author: Nicolas POMEPUY
+  ~ Author: Alexandre PERRAUD
   ~ This program is free software; you can redistribute it and/or modify
   ~ it under the terms of the GNU General Public License as published by
   ~ the Free Software Foundation; either version 2 of the License, or
@@ -23,11 +23,11 @@
   -->
 
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="40dp"
-        android:height="40dp"
-        android:viewportWidth="24"
-        android:viewportHeight="24">
-    <path
-            android:fillColor="#000000"
-            android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z" />
+    android:width="40dp"
+    android:height="40dp"
+    android:viewportWidth="40"
+    android:viewportHeight="40">
+  <path
+      android:pathData="M31,13 L18,26 11,19 8,22 18,32 34,16Z"
+      android:fillColor="#000000"/>
 </vector>



More information about the Android mailing list