[Android] Implement new group icons
Alexandre Perraud
git at videolan.org
Wed Jun 5 11:51:01 UTC 2024
vlc-android | branch: master | Alexandre Perraud <alexandre at videolan.org> | Tue May 7 10:48:00 2024 +0200| [b55983756b065f44efe9b86230ed595213676007] | committer: Nicolas Pomepuy
Implement new group icons
> https://code.videolan.org/videolan/vlc-android/commit/b55983756b065f44efe9b86230ed595213676007
---
.../src/main/res/drawable/ic_add_to_group.xml | 24 ++++++++--------------
.../src/main/res/drawable/ic_group_auto.xml | 22 ++++++++------------
.../src/main/res/drawable/ic_remove_from_group.xml | 24 ++++++++--------------
3 files changed, 27 insertions(+), 43 deletions(-)
diff --git a/application/resources/src/main/res/drawable/ic_add_to_group.xml b/application/resources/src/main/res/drawable/ic_add_to_group.xml
index bc683211a6..93284f3fac 100644
--- a/application/resources/src/main/res/drawable/ic_add_to_group.xml
+++ b/application/resources/src/main/res/drawable/ic_add_to_group.xml
@@ -1,17 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:width="40dp"
- android:height="40dp"
- android:viewportWidth="40"
- android:viewportHeight="40">
- <path
- android:pathData="M13.5,6A2.5,2.5 0,0 0,11 8.5v18a2.5,2.5 0,0 0,2.5 2.5h18A2.5,2.5 0,0 0,34 26.5v-18A2.5,2.5 0,0 0,31.5 6ZM13.5,8.5h18v18h-18zM22.5,11.5C21.669,11.5 21,12.169 21,13v3h-3c-0.831,0 -1.5,0.669 -1.5,1.5 0,0.831 0.669,1.5 1.5,1.5h3v3c0,0.831 0.669,1.5 1.5,1.5 0.831,0 1.5,-0.669 1.5,-1.5v-3h3c0.831,0 1.5,-0.669 1.5,-1.5C28.5,16.669 27.831,16 27,16h-3v-3c0,-0.831 -0.669,-1.5 -1.5,-1.5zM6,12L6,31.5A2.5,2.5 0,0 0,8.5 34L28,34L28,31.5L8.5,31.5L8.5,12Z"
- android:strokeAlpha="1"
- android:strokeLineJoin="miter"
- android:strokeWidth="5.12989235"
- android:fillColor="?attr/colorControlNormal"
- tools:fillColor="@color/white"
- android:strokeColor="#00000000"
- android:fillAlpha="1"
- android:strokeLineCap="round" />
+ xmlns:tools="http://schemas.android.com/tools"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="48"
+ android:viewportHeight="48">
+ <path
+ android:pathData="M16,4C13.784,4 12,5.784 12,8L12,32C12,34.216 13.784,36 16,36L40,36C42.216,36 44,34.216 44,32L44,8C44,5.784 42.216,4 40,4L16,4zM16,8L40,8L40,32L16,32L16,8zM6,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 12zM28,12C26.892,12 26,12.892 26,14L26,18L22,18C20.892,18 20,18.892 20,20C20,21.108 20.892,22 22,22L26,22L26,26C26,27.108 26.892,28 28,28C29.108,28 30,27.108 30,26L30,22L34,22C35.108,22 36,21.108 36,20C36,18.892 35.108,18 34,18L30,18L30,14C30,12.892 29.108,12 28,12z"
+ android:fillColor="?attr/colorControlNormal"
+ tools:fillColor="@color/white"/>
</vector>
diff --git a/application/resources/src/main/res/drawable/ic_group_auto.xml b/application/resources/src/main/res/drawable/ic_group_auto.xml
index d83af1d32e..0086e86b8b 100644
--- a/application/resources/src/main/res/drawable/ic_group_auto.xml
+++ b/application/resources/src/main/res/drawable/ic_group_auto.xml
@@ -1,15 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
- android:width="40dp"
- android:height="40dp"
- android:viewportWidth="40"
- android:viewportHeight="40">
- <path
- android:pathData="M13.5,6A2.5,2.5 0,0 0,11 8.5v18a2.5,2.5 0,0 0,2.5 2.5h18A2.5,2.5 0,0 0,34 26.5v-18A2.5,2.5 0,0 0,31.5 6ZM13.5,8.5h18v18h-18zM22.2676,10.7539c-2.5383,0.0875 -4.8102,1.5913 -5.8828,3.8926 -1.5754,3.3784 -0.1155,7.3948 3.2617,8.9707 3.3438,1.5577 7.3186,0.1406 8.9238,-3.1816 0.017,-0.0267 0.0329,-0.054 0.0469,-0.082 0.263,-0.563 0.0202,-1.2332 -0.543,-1.4961 -0.5633,-0.2629 -1.2339,-0.0188 -1.4961,0.5449 -1.05,2.2521 -3.7251,3.2276 -5.9766,2.1777 -2.2521,-1.0503 -3.2263,-3.7298 -2.1758,-5.9824 1.0499,-2.2521 3.7251,-3.2256 5.9766,-2.1758 0.6015,0.2838 1.1341,0.6971 1.5566,1.2109l-1.0977,1.0977c-0.2347,0.2363 -0.0684,0.6405 0.2656,0.6406L28.875,16.3711c0.2071,-0 0.375,-0.1679 0.375,-0.375v-3.75c0.0001,-0.2118 -0.1751,-0.3816 -0.3867,-0.375 -0.095,0.003 -0.1865,0.0418 -0.2539,0.1094l-1.0547,1.0566c-0.6123,-0.6967 -1.3618,-1.2602 -2.2012,-1.6543 -0.9641,-0.4497 -2.0212,-0.6653 -3.0859,-0.6289zM6,12L6,31.5A2.5,2.5 0,0 0,8.5 34L28,34L28,31.5L8.5,31.5L8.5,12Z"
- android:strokeAlpha="1"
- android:strokeLineJoin="miter"
- android:strokeWidth="5.12989235"
- android:fillColor="@color/white"
- android:strokeColor="#00000000"
- android:fillAlpha="1"
- android:strokeLineCap="round" />
+ xmlns:tools="http://schemas.android.com/tools"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="48"
+ android:viewportHeight="48">
+ <path
+ android:pathData="M16,4C13.784,4 12,5.784 12,8L12,32C12,34.216 13.784,36 16,36L40,36C42.216,36 44,34.216 44,32L44,8C44,5.784 42.216,4 40,4L16,4zM16,8L40,8L40,32L16,32L16,8zM28.23,11.004C28.054,11 27.876,11 27.699,11.006L27.695,11.006C24.312,11.123 21.28,13.129 19.85,16.197C17.748,20.702 19.697,26.057 24.201,28.158C28.661,30.235 33.962,28.346 36.104,23.916C36.126,23.88 36.147,23.844 36.166,23.807L36.166,23.805C36.517,23.054 36.192,22.161 35.441,21.811C34.69,21.46 33.797,21.785 33.447,22.537C32.047,25.54 28.478,26.839 25.475,25.439C22.471,24.039 21.171,20.468 22.572,17.465C23.973,14.462 27.542,13.163 30.545,14.563C31.348,14.939 32.058,15.49 32.623,16.174L31.156,17.641C30.843,17.956 31.064,18.494 31.51,18.494L36.51,18.494C36.786,18.494 37.01,18.27 37.01,17.994L37.01,12.994C37.01,12.712 36.776,12.485 36.494,12.494C36.367,12.498 36.246,12.551 36.156,12.641L34.74,14.057C33.927,13.126 32.93,12.372 31.813,11.844C30.687,11.319 29.468,11.034 28.23,11.004zM6,12A2,2 0,0 0,4 14L4,40C4,42.1
85 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 12z"
+ android:fillColor="?attr/colorControlNormal"
+ tools:fillColor="@color/white"/>
</vector>
diff --git a/application/resources/src/main/res/drawable/ic_remove_from_group.xml b/application/resources/src/main/res/drawable/ic_remove_from_group.xml
index d8e586ff02..f6823a35b3 100644
--- a/application/resources/src/main/res/drawable/ic_remove_from_group.xml
+++ b/application/resources/src/main/res/drawable/ic_remove_from_group.xml
@@ -1,17 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:width="40dp"
- android:height="40dp"
- android:viewportWidth="40"
- android:viewportHeight="40">
- <path
- android:fillAlpha="1"
- android:fillColor="?attr/colorControlNormal"
- android:pathData="M13.5,6A2.5,2.5 0,0 0,11 8.5v18a2.5,2.5 0,0 0,2.5 2.5h18A2.5,2.5 0,0 0,34 26.5v-18A2.5,2.5 0,0 0,31.5 6ZM13.5,8.5h18v18h-18zM18.002,11.5c-0.3833,0 -0.7668,0.1477 -1.0605,0.4414 -0.5875,0.5875 -0.5874,1.5317 0,2.1191l3.4375,3.4395 -3.4375,3.4395c-0.5875,0.5874 -0.5875,1.5317 0,2.1191 0.5875,0.5875 1.5316,0.5874 2.1191,0l3.4395,-3.4375 3.4395,3.4375c0.5876,0.5874 1.5316,0.5875 2.1191,0 0.5875,-0.5874 0.5875,-1.5337 0,-2.1211l-3.4375,-3.4375 3.4375,-3.4395c0.5875,-0.5874 0.5875,-1.5317 0,-2.1191 -0.5874,-0.5874 -1.5315,-0.5874 -2.1191,0L22.5,15.3789 19.0625,11.9414C18.7688,11.6477 18.3853,11.5 18.002,11.5ZM6,12L6,31.5A2.5,2.5 0,0 0,8.5 34L28,34L28,31.5L8.5,31.5L8.5,12Z"
- android:strokeWidth="4.23851871"
- android:strokeAlpha="1"
- android:strokeColor="#00000000"
- android:strokeLineCap="round"
- android:strokeLineJoin="miter"
- tools:fillColor="@color/white" />
+ xmlns:tools="http://schemas.android.com/tools"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="48"
+ android:viewportHeight="48">
+ <path
+ android:pathData="M16,4C13.784,4 12,5.784 12,8L12,32C12,34.216 13.784,36 16,36L40,36C42.216,36 44,34.216 44,32L44,8C44,5.784 42.216,4 40,4L16,4zM16,8L40,8L40,32L16,32L16,8zM22.002,11.998C21.491,11.998 20.98,12.194 20.588,12.586C19.804,13.369 19.804,14.631 20.588,15.414L25.172,20L20.586,24.586C19.803,25.369 19.803,26.631 20.586,27.414C21.369,28.198 22.631,28.197 23.414,27.414L28,22.828L32.586,27.412C33.369,28.196 34.631,28.196 35.414,27.412C36.197,26.629 36.197,25.367 35.414,24.584L30.828,20L35.414,15.414C36.197,14.631 36.197,13.369 35.414,12.586C34.631,11.803 33.369,11.803 32.586,12.586L28,17.17L23.416,12.586C23.024,12.194 22.513,11.998 22.002,11.998zM6,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 12z"
+ android:fillColor="?attr/colorControlNormal"
+ tools:fillColor="@color/white"/>
</vector>
More information about the Android
mailing list