[Android] Add new launcher debug adaptive icon
Alexandre Perraud
git at videolan.org
Thu Jul 9 14:34:12 CEST 2020
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Tue Jul 7 15:37:11 2020 +0200| [ba3338ac5a693a16dc757987857aff0d3f80a07f] | committer: Alexandre Perraud
Add new launcher debug adaptive icon
> https://code.videolan.org/videolan/vlc-android/commit/ba3338ac5a693a16dc757987857aff0d3f80a07f
---
.../debug/res/drawable/ic_launcher_background.xml | 42 ++++++++++++++-----
.../debug/res/drawable/ic_launcher_foreground.xml | 47 +++++++++-------------
.../resources/src/main/res/values/colors.xml | 11 +++++
3 files changed, 64 insertions(+), 36 deletions(-)
diff --git a/application/resources/flavors/debug/res/drawable/ic_launcher_background.xml b/application/resources/flavors/debug/res/drawable/ic_launcher_background.xml
old mode 100644
new mode 100755
index 089f6746e..46233521d
--- a/application/resources/flavors/debug/res/drawable/ic_launcher_background.xml
+++ b/application/resources/flavors/debug/res/drawable/ic_launcher_background.xml
@@ -1,11 +1,35 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
- android:width="108dp"
- android:height="108dp"
- android:viewportWidth="108"
- android:viewportHeight="108">
- <path
- android:pathData="M0,0h108v108h-108z"
- android:strokeWidth="0.9818182"
- android:fillColor="#074335"
- android:fillAlpha="1"/>
+ xmlns:aapt="http://schemas.android.com/aapt"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportWidth="108"
+ android:viewportHeight="108">
+ <path android:pathData="M0,0h108v108h-108z">
+ <aapt:attr name="android:fillColor">
+ <!-- 4 colors linear top to bottom-->
+ <gradient
+ android:endX="54"
+ android:endY="108"
+ android:startX="54"
+ android:startY="0"
+ android:type="linear">
+ <!-- green200 from top to green500 54% stop -->
+ <item
+ android:color="@color/green200"
+ android:offset="0.0" />
+ <item
+ android:color="@color/green500"
+ android:offset="0.54" />
+ <!-- green600 to 72% stop -->
+ <item
+ android:color="@color/green600"
+ android:offset="0.72" />
+ <!-- green800 to bottom -->
+ <item
+ android:color="@color/green800"
+ android:offset="1.0" />
+ </gradient>
+
+ </aapt:attr>
+ </path>
</vector>
diff --git a/application/resources/flavors/debug/res/drawable/ic_launcher_foreground.xml b/application/resources/flavors/debug/res/drawable/ic_launcher_foreground.xml
old mode 100644
new mode 100755
index cf35c435d..33f448667
--- a/application/resources/flavors/debug/res/drawable/ic_launcher_foreground.xml
+++ b/application/resources/flavors/debug/res/drawable/ic_launcher_foreground.xml
@@ -1,29 +1,22 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
- android:width="108dp"
- android:height="108dp"
- android:viewportWidth="108"
- android:viewportHeight="108">
- <group>
- <clip-path android:pathData="m54,28c-0.991,0 -1.642,0.441 -2.181,0.991 -0.746,0.762 -1.388,2.974 -1.388,2.974l-8.328,24.983l-3.371,0c-1.054,0 -2.054,0.923 -2.379,1.983L32.884,70.828c-0.464,1.59 -0.297,3.172 1.884,3.172l19.233,0 19.233,0c2.181,-0 2.347,-1.583 1.884,-3.172L71.647,58.931c-0.326,-1.06 -1.325,-1.983 -2.379,-1.983L65.897,56.948L57.569,31.966c0,0 -0.642,-2.213 -1.388,-2.974 -0.539,-0.551 -1.19,-0.991 -2.181,-0.991z M 0,0"/>
- <path
- android:pathData="m54,28c-0.991,0 -1.642,0.441 -2.181,0.991 -0.746,0.762 -1.388,2.974 -1.388,2.974l-8.328,24.983l-3.371,0c-1.054,0 -2.054,0.923 -2.379,1.983L32.884,70.828c-0.464,1.59 -0.297,3.172 1.884,3.172l19.233,0 19.233,0c2.181,-0 2.347,-1.583 1.884,-3.172L71.647,58.931c-0.326,-1.06 -1.325,-1.983 -2.379,-1.983L65.897,56.948L57.569,31.966c0,0 -0.642,-2.213 -1.388,-2.974 -0.539,-0.551 -1.19,-0.991 -2.181,-0.991z"
- android:fillColor="#16dfb1"/>
- <path
- android:pathData="m65.897,56.948c0,0 0.529,1.586 0.793,2.379 0.383,1.151 0.567,1.73 -0.006,2.389C63.517,64.879 58.47,66.07 54,66.069 49.527,66.068 44.505,64.833 41.31,61.707L52.81,73.207L32.936,73.207c0.296,0.483 0.866,0.793 1.831,0.793l19.233,0 19.233,0c2.181,-0 2.347,-1.583 1.884,-3.172L71.647,58.931c-0.326,-1.06 -1.325,-1.983 -2.379,-1.983z"
- android:fillColor="#16dfb1"
- android:fillAlpha="1"/>
- <path
- android:pathData="m46.862,42.672c2.379,1.784 4.597,2.677 7.138,2.677 2.541,0 4.759,-0.892 7.138,-2.677 4.759,0 3.172,-10.707 -2.776,-8.328 -3.288,1.734 -5.552,1.586 -8.724,0 -5.948,-2.379 -7.534,8.328 -2.776,8.328zM42.103,56.948c0,0 -0.529,1.586 -0.793,2.379 -0.397,1.19 -0.598,1.794 0,2.379 3.194,3.126 8.217,4.361 12.69,4.362 4.47,0.001 9.517,-1.19 12.684,-4.352C67.257,61.058 67.073,60.479 66.69,59.328c-0.264,-0.793 -0.793,-2.379 -0.793,-2.379 2.776,0 0,-6.741 -1.586,-4.759 -3.172,3.172 -6.628,3.966 -10.31,3.966 -3.682,0 -7.138,-0.793 -10.31,-3.966 -1.586,-1.586 -4.362,4.759 -1.586,4.759z"
- android:fillColor="#fafafa"/>
- <path
- android:pathData="m43.69,56.552c-1.652,5.114 5.252,5.685 5.912,1.971L54.397,31.569c0.443,-2.491 -1.519,-3.457 -2.379,-0.793z"
- android:strokeAlpha="0.6"
- android:strokeLineJoin="miter"
- android:strokeWidth="1"
- android:fillColor="#ffffff"
- android:strokeColor="#00000000"
- android:fillType="evenOdd"
- android:fillAlpha="0.18823531"
- android:strokeLineCap="butt"/>
- </group>
+ xmlns:aapt="http://schemas.android.com/aapt"
+ android:width="108dp"
+ android:height="108dp"
+ android:viewportWidth="108"
+ android:viewportHeight="108">
+
+ <!-- top shadow -->
+ <path
+ android:pathData="m32.072,72.723 l0.852,3.023 0.006,-0.008C33.134,76.481 33.737,77 35,77h38c1.26,0 1.861,-0.516 2.066,-1.256l0.002,0.002 0.852,-3.021z"
+ android:fillColor="#24000000"/>
+
+ <!-- stripes -->
+ <path
+ android:pathData="m58.499,33.094c-3.392,1.789 -5.727,1.636 -8.999,0l-2.863,8.59c2.454,1.841 4.742,2.761 7.363,2.761 2.621,0 4.909,-0.92 7.363,-2.761zM41.728,56.41c0,0 -0.545,1.636 -0.818,2.454 -0.409,1.227 -0.617,1.851 0,2.454 3.295,3.224 8.476,4.498 13.09,4.5 4.611,0.001 9.817,-1.227 13.084,-4.489 0.591,-0.68 0.401,-1.277 0.006,-2.465 -0.272,-0.818 -0.818,-2.454 -0.818,-2.454l-1.636,-4.909c-3.272,3.272 -6.837,4.091 -10.636,4.091 -3.798,0 -7.363,-0.818 -10.636,-4.091z"
+ android:fillColor="@color/green500"/>
+
+ <!-- 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/resources/src/main/res/values/colors.xml b/application/resources/src/main/res/values/colors.xml
index d13b19d7c..a419c0635 100644
--- a/application/resources/src/main/res/values/colors.xml
+++ b/application/resources/src/main/res/values/colors.xml
@@ -25,6 +25,17 @@
<color name="orange500focus">#86ff8800</color>
<color name="orange200transparent">#64ffca7d</color>
+ <color name="green50">#bdeadd</color>
+ <color name="green100">#a7e3d1</color>
+ <color name="green200">#91dcc5</color>
+ <color name="green300">#7cd5ba</color>
+ <color name="green400">#66cfaf</color>
+ <color name="green500">#50c8a3</color>
+ <color name="green600">#47b99b</color>
+ <color name="green700">#3ea992</color>
+ <color name="green800">#359989</color>
+ <color name="green900">#2b8a81</color>
+
<color name="grey50">#fafafa</color>
<color name="grey100">#f5f5f5</color>
<color name="grey200">#eeeeee</color>
More information about the Android
mailing list