[Android] Add new group display icon

Alexandre Perraud git at videolan.org
Wed Jun 5 11:51:01 UTC 2024


vlc-android | branch: master | Alexandre Perraud <alexandre at videolan.org> | Mon May  6 18:40:36 2024 +0200| [35741d4f63e3117ad388f26f4195c70e230d29f3] | committer: Nicolas Pomepuy

Add new group display icon

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

 .../svg/{ic_group.svg => ic_group_display.svg}     | 50 +++++++++++++---------
 .../resources/src/main/res/drawable/ic_group.xml   | 13 ------
 .../src/main/res/drawable/ic_group_display.xml     | 24 +++++------
 3 files changed, 39 insertions(+), 48 deletions(-)

diff --git a/application/resources/assets/images/svg/ic_group.svg b/application/resources/assets/images/svg/ic_group_display.svg
similarity index 51%
rename from application/resources/assets/images/svg/ic_group.svg
rename to application/resources/assets/images/svg/ic_group_display.svg
index 0a34ead10e..d62199d593 100644
--- a/application/resources/assets/images/svg/ic_group.svg
+++ b/application/resources/assets/images/svg/ic_group_display.svg
@@ -2,20 +2,20 @@
 <!-- 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="48px"
    height="48px"
    viewBox="0 0 48 48"
    version="1.1"
    id="SVGRoot"
-   inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
-   sodipodi:docname="ic_group.svg">
+   inkscape:version="1.3.2 (1:1.3.2+202311252150+091e20ef0f)"
+   sodipodi:docname="ic_group_display.svg"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:dc="http://purl.org/dc/elements/1.1/">
   <defs
      id="defs7678" />
   <sodipodi:namedview
@@ -25,16 +25,16 @@
      borderopacity="1.0"
      inkscape:pageopacity="0.0"
      inkscape:pageshadow="2"
-     inkscape:zoom="8.0000004"
-     inkscape:cx="-32.254843"
-     inkscape:cy="27.131304"
+     inkscape:zoom="16.000001"
+     inkscape:cx="20.781249"
+     inkscape:cy="23.593749"
      inkscape:document-units="px"
      inkscape:current-layer="layer1"
      showgrid="true"
      inkscape:window-width="1920"
-     inkscape:window-height="1016"
+     inkscape:window-height="1043"
      inkscape:window-x="0"
-     inkscape:window-y="1107"
+     inkscape:window-y="0"
      inkscape:window-maximized="1"
      inkscape:grid-bbox="true"
      inkscape:snap-bbox="true"
@@ -47,10 +47,20 @@
      inkscape:snap-smooth-nodes="true"
      inkscape:snap-midpoints="true"
      inkscape:snap-object-midpoints="true"
-     inkscape:snap-center="true">
+     inkscape:snap-center="true"
+     inkscape:showpageshadow="0"
+     inkscape:pagecheckerboard="1"
+     inkscape:deskcolor="#d1d1d1">
     <inkscape:grid
        type="xygrid"
-       id="grid8234" />
+       id="grid8234"
+       originx="0"
+       originy="0"
+       spacingy="1"
+       spacingx="1"
+       units="px"
+       visible="true"
+       empspacing="4" />
   </sodipodi:namedview>
   <metadata
      id="metadata7681">
@@ -60,7 +70,6 @@
         <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>
@@ -69,9 +78,8 @@
      inkscape:groupmode="layer"
      id="layer1">
     <path
-       style="opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-       d="m 15,6 c -1.662,0 -3,1.338 -3,3 v 24 c 0,1.662 1.338,3 3,3 h 24 c 1.662,0 3,-1.338 3,-3 V 9 C 42,7.338 40.662,6 39,6 Z m 0,3 H 39 V 33 H 15 Z m -9,4 v 26 c 0,1.65685 1.3431,3 3,3 H 35 V 39 H 9 V 13 Z m 14,1 c -1.108,0 -2,0.89196 -2,2 v 10 c 0,1.108 0.892,2 2,2 h 14 c 1.108,0 2,-0.892 2,-2 V 14 H 32.5 L 34,17 H 31 L 29.5,14 H 28 l 1.5,3 h -3 L 25,14 h -1.5 l 1.5,3 h -3 l -1.5,-3 z"
-       id="path8145-1"
-       inkscape:connector-curvature="0" />
+       id="path54"
+       style="color:#000000;fill:#000000;fill-rule:evenodd;stroke-linecap:round;-inkscape-stroke:none"
+       d="M 15 10 C 13.372618 10 12 11.372614 12 13 L 12 33 C 12 34.627386 13.372618 36 15 36 L 39 36 C 40.627382 36 42 34.627386 42 33 L 42 13 C 42 11.372614 40.627382 10 39 10 L 36 10 L 38.576172 15.460938 C 38.692972 15.708485 38.522816 15.99996 38.261719 16 L 35.259766 16 C 34.993566 16.00003 34.749959 15.840128 34.630859 15.587891 L 32 10 L 28.5 10 L 31.076172 15.460938 C 31.192972 15.708485 31.022816 15.99996 30.761719 16 L 27.759766 16 C 27.493566 16.00003 27.249959 15.840128 27.130859 15.587891 L 24.5 10 L 21 10 L 23.576172 15.460938 C 23.692872 15.708485 23.522916 15.99996 23.261719 16 L 20.259766 16 C 19.993566 16.00003 19.749959 15.840128 19.630859 15.587891 L 17 10 L 15 10 z M 6 12 A 2 2 0 0 0 4 14 L 4 40 C 4 42.185409 5.8145908 44 8 44 L 34 44 A 2 2 0 0 0 36 42 A 2 2 0 0 0 34 40 L 8 40 L 8 14 A 2 2 0 0 0 6 12 z M 16 16.048828 L 17.476562 19.177734 C 17.71503 19.68213 18.201979 20.00046 18.734375 20 L 38 20 L 38 32 L 16 32 L 16 16.048828 z " />
   </g>
 </svg>
diff --git a/application/resources/src/main/res/drawable/ic_group.xml b/application/resources/src/main/res/drawable/ic_group.xml
deleted file mode 100644
index 715dc5ea29..0000000000
--- a/application/resources/src/main/res/drawable/ic_group.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="48"
-        android:viewportHeight="48">
-    <path
-            android:fillColor="@color/grey400"
-            android:pathData="m15,6c-1.662,0 -3,1.338 -3,3v24c0,1.662 1.338,3 3,3h24c1.662,0 3,-1.338 3,-3L42,9C42,7.338 40.662,6 39,6ZM15,9L39,9L39,33L15,33ZM6,13v26c0,1.657 1.343,3 3,3L35,42L35,39L9,39L9,13ZM20,14c-1.108,0 -2,0.892 -2,2v10c0,1.108 0.892,2 2,2h14c1.108,0 2,-0.892 2,-2L36,14L32.5,14L34,17L31,17L29.5,14L28,14l1.5,3h-3L25,14h-1.5l1.5,3h-3l-1.5,-3z"
-            android:strokeWidth="0.1"
-            android:strokeColor="#00000000"
-            android:strokeLineCap="round"
-            android:strokeLineJoin="miter" />
-</vector>
diff --git a/application/resources/src/main/res/drawable/ic_group_display.xml b/application/resources/src/main/res/drawable/ic_group_display.xml
index 02a66d27e0..08bc463296 100644
--- a/application/resources/src/main/res/drawable/ic_group_display.xml
+++ b/application/resources/src/main/res/drawable/ic_group_display.xml
@@ -1,15 +1,11 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
-        xmlns:tools="http://schemas.android.com/tools"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="48"
-        android:viewportHeight="48">
-    <path
-            tools:fillColor="#fff"
-            android:fillColor="?attr/colorControlNormal"
-            android:pathData="m15,6c-1.662,0 -3,1.338 -3,3v24c0,1.662 1.338,3 3,3h24c1.662,0 3,-1.338 3,-3L42,9C42,7.338 40.662,6 39,6ZM15,9L39,9L39,33L15,33ZM6,13v26c0,1.657 1.343,3 3,3L35,42L35,39L9,39L9,13ZM20,14c-1.108,0 -2,0.892 -2,2v10c0,1.108 0.892,2 2,2h14c1.108,0 2,-0.892 2,-2L36,14L32.5,14L34,17L31,17L29.5,14L28,14l1.5,3h-3L25,14h-1.5l1.5,3h-3l-1.5,-3z"
-            android:strokeWidth="0.1"
-            android:strokeColor="#00000000"
-            android:strokeLineCap="round"
-            android:strokeLineJoin="miter" />
-</vector>
+    xmlns:tools="http://schemas.android.com/tools"
+    android:width="48dp"
+    android:height="48dp"
+    android:viewportWidth="48"
+    android:viewportHeight="48">
+  <path
+      android:pathData="M15,10C13.373,10 12,11.373 12,13L12,33C12,34.627 13.373,36 15,36L39,36C40.627,36 42,34.627 42,33L42,13C42,11.373 40.627,10 39,10L36,10L38.576,15.461C38.693,15.708 38.523,16 38.262,16L35.26,16C34.994,16 34.75,15.84 34.631,15.588L32,10L28.5,10L31.076,15.461C31.193,15.708 31.023,16 30.762,16L27.76,16C27.494,16 27.25,15.84 27.131,15.588L24.5,10L21,10L23.576,15.461C23.693,15.708 23.523,16 23.262,16L20.26,16C19.994,16 19.75,15.84 19.631,15.588L17,10L15,10zM6,12A2,2 0,0 0,4 14L4,40C4,42.185 5.815,44 8,44L34,44A2,2 0,0 0,36 42A2,2 0,0 0,34 40L8,40L8,14A2,2 0,0 0,6 12zM16,16.049L17.477,19.178C17.715,19.682 18.202,20 18.734,20L38,20L38,32L16,32L16,16.049z"
+      android:fillColor="?attr/colorControlNormal"
+      tools:fillColor="#fff"/>
+</vector>
\ No newline at end of file



More information about the Android mailing list