[Android] Implement Material you icon

Nicolas Pomepuy git at videolan.org
Fri Jun 3 07:02:48 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri May 20 07:09:22 2022 +0200| [d1100b65a8ff51f0ebdcfa324ad0d405eb6d0156] | committer: Nicolas Pomepuy

Implement Material you icon

Fixes #2538

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

 .../main/res/drawable/ic_launcher_monochrome.xml   | 35 ++++++++++++++++++++++
 .../res/mipmap-anydpi-v26/ic_launcher.xml          |  3 +-
 2 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/application/resources/src/main/res/drawable/ic_launcher_monochrome.xml b/application/resources/src/main/res/drawable/ic_launcher_monochrome.xml
new file mode 100755
index 000000000..540a91ab3
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_launcher_monochrome.xml
@@ -0,0 +1,35 @@
+<!--
+  ~ *************************************************************************
+  ~  ic_launcher_monochrome.xml
+  ~ **************************************************************************
+  ~ Copyright © 2022 VLC authors and VideoLAN
+  ~ Author: Nicolas POMEPUY
+  ~ 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
+  ~ (at your option) any later version.
+  ~
+  ~ This program is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  ~ GNU General Public License for more details.
+  ~
+  ~ You should have received a copy of the GNU General Public License
+  ~ along with this program; if not, write to the Free Software
+  ~ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+  ~ ***************************************************************************
+  ~
+  ~
+  -->
+
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+        android:width="108dp"
+        android:height="108dp"
+        android:viewportWidth="108"
+        android:viewportHeight="108">
+
+ <!-- cone -->
+  <path
+      android:pathData="m54,26.549c-1.023,0 -1.694,0.455 -2.25,1.023 -0.769,0.786 -1.432,3.068 -1.432,3.068l-0.818,2.453c3.273,1.636 5.608,1.789 9,0l-0.818,-2.453c0,0 -0.663,-2.283 -1.432,-3.068 -0.556,-0.568 -1.227,-1.023 -2.25,-1.023zM46.637,41.683 L43.365,51.502c3.272,3.272 6.837,4.09 10.635,4.09 3.798,0 7.362,-0.817 10.635,-4.09l-3.271,-9.818c-2.454,1.841 -4.742,2.762 -7.363,2.762 -2.621,0 -4.909,-0.921 -7.363,-2.762zM38.25,56.41c-1.088,0 -2.117,0.951 -2.453,2.045l-3.58,12.271c-0.478,1.64 -0.306,3.273 1.943,3.273h19.84,19.84c2.25,-0 2.42,-1.634 1.941,-3.273L72.203,58.455c-0.336,-1.094 -1.367,-2.045 -2.455,-2.045h-3.477c0,0 0.546,1.637 0.818,2.455 0.395,1.187 0.585,1.785 -0.006,2.465 -3.267,3.262 -8.473,4.49 -13.084,4.488 -4.614,-0.001 -9.795,-1.276 -13.09,-4.5 -0.617,-0.604 -0.409,-1.226 0,-2.453 0.273,-0.818 0.818,-2.455 0.818,-2.455z"
+      android:fillColor="@color/grey50"/>
+</vector>
diff --git a/application/vlc-android/res/mipmap-anydpi-v26/ic_launcher.xml b/application/vlc-android/res/mipmap-anydpi-v26/ic_launcher.xml
index 05729abe8..04091bd10 100644
--- a/application/vlc-android/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/application/vlc-android/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -2,4 +2,5 @@
 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
     <background android:drawable="@drawable/ic_launcher_background"/>
     <foreground android:drawable="@drawable/ic_launcher_foreground"/>
-</adaptive-icon>  
\ No newline at end of file
+    <monochrome android:drawable="@drawable/ic_launcher_monochrome"/>
+</adaptive-icon>
\ No newline at end of file



More information about the Android mailing list