[Android] Update the shortcut icons to be orange
Nicolas Pomepuy
git at videolan.org
Fri Feb 14 11:07:17 UTC 2025
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Feb 4 14:04:36 2025 +0100| [8c67157275783fe76ab75a1d20ff574d4d52d19c] | committer: Duncan McNamara
Update the shortcut icons to be orange
> https://code.videolan.org/videolan/vlc-android/commit/8c67157275783fe76ab75a1d20ff574d4d52d19c
---
.../resources/src/main/res/drawable/ic_shortcut_audio.xml | 10 ++++++++++
.../resources/src/main/res/drawable/ic_shortcut_folder.xml | 9 +++++++++
.../src/main/res/drawable/ic_shortcut_resume_playback.xml | 2 +-
.../resources/src/main/res/drawable/ic_shortcut_video.xml | 9 +++++++++
application/vlc-android/flavors/debug/res/xml/shortcuts.xml | 6 +++---
application/vlc-android/res/xml/shortcuts.xml | 6 +++---
6 files changed, 35 insertions(+), 7 deletions(-)
diff --git a/application/resources/src/main/res/drawable/ic_shortcut_audio.xml b/application/resources/src/main/res/drawable/ic_shortcut_audio.xml
new file mode 100644
index 0000000000..c054db0fae
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_shortcut_audio.xml
@@ -0,0 +1,10 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="48"
+ android:viewportHeight="48">
+ <path
+ android:fillColor="@color/orange800"
+ android:pathData="m28,6c-2.2,0 -4,1.8 -4,4v17.1c-1.88,-1.08 -4.2,-1.499 -6.66,-0.639 -2.68,0.96 -4.741,3.339 -5.221,6.139 -0.92,5.48 3.722,10.161 9.182,9.301C25.221,41.28 28,37.679 28,33.699L28,14h4c2.2,0 4,-1.8 4,-4L36,6ZM20,30c2.209,0 4,1.791 4,4 0,2.209 -1.791,4 -4,4 -2.209,0 -4,-1.791 -4,-4 0,-2.209 1.791,-4 4,-4z"
+ android:strokeWidth="1"/>
+</vector>
diff --git a/application/resources/src/main/res/drawable/ic_shortcut_folder.xml b/application/resources/src/main/res/drawable/ic_shortcut_folder.xml
new file mode 100644
index 0000000000..75e94b9bc0
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_shortcut_folder.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="@color/orange800"
+ android:pathData="M9.17,6l2,2H20v10H4V6h5.17M10,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8c0,-1.1 -0.9,-2 -2,-2h-8l-2,-2z" />
+</vector>
diff --git a/application/resources/src/main/res/drawable/ic_shortcut_resume_playback.xml b/application/resources/src/main/res/drawable/ic_shortcut_resume_playback.xml
index 5cf469e0ff..a6a441d627 100644
--- a/application/resources/src/main/res/drawable/ic_shortcut_resume_playback.xml
+++ b/application/resources/src/main/res/drawable/ic_shortcut_resume_playback.xml
@@ -29,7 +29,7 @@
xmlns:android="http://schemas.android.com/apk/res/android">
<path
android:fillAlpha="1"
- android:fillColor="#727272"
+ android:fillColor="@color/orange800"
android:fillType="nonZero"
android:pathData="m23,4.0005c-0.255,0 -0.4982,0.11 -0.6796,0.289l-5.0273,4.9999c-0.3926,0.3906 -0.3926,1.0236 0,1.4142l5.0273,5c0.6336,0.6295 1.7144,0.184 1.7148,-0.7072v-2.996c7.7391,0.02 13.9646,6.2559 13.9646,13.9998 0,7.7557 -6.2441,13.9998 -13.9998,13.9998 -7.7557,0 -13.9998,-6.2441 -13.9998,-13.9998L6.0002,26.0001c0,9.9173 8.0827,17.9998 17.9998,17.9998 9.9173,0 17.9998,-8.0825 17.9998,-17.9998 0,-9.9055 -8.0635,-17.9806 -17.9646,-17.9998v-3.0039c-0.002,-0.5632 -0.4694,-1.0136 -1.0352,-0.996zM20.9922,20.0002c-0.543,-0.02 -0.992,0.4522 -0.9922,1.0312v9.9335c-0.0008,0.795 0.8074,1.2949 1.4532,0.8984l8.0623,-4.9686c0.645,-0.3976 0.645,-1.3916 0,-1.7892l-8.0623,-4.9647c-0.14,-0.088 -0.2986,-0.136 -0.461,-0.14z"
android:strokeAlpha="1"
diff --git a/application/resources/src/main/res/drawable/ic_shortcut_video.xml b/application/resources/src/main/res/drawable/ic_shortcut_video.xml
new file mode 100644
index 0000000000..fa8c3c5839
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_shortcut_video.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="48dp"
+ android:height="48dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="@color/orange800"
+ android:pathData="M4,6.47L5.76,10H20v8H4V6.47M22,4h-4l2,4h-3l-2,-4h-2l2,4h-3l-2,-4H8l2,4H7L5,4H4c-1.1,0 -1.99,0.9 -1.99,2L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V4z" />
+</vector>
diff --git a/application/vlc-android/flavors/debug/res/xml/shortcuts.xml b/application/vlc-android/flavors/debug/res/xml/shortcuts.xml
index 301fc241e1..964f97957d 100644
--- a/application/vlc-android/flavors/debug/res/xml/shortcuts.xml
+++ b/application/vlc-android/flavors/debug/res/xml/shortcuts.xml
@@ -17,7 +17,7 @@
<shortcut
android:shortcutId="browser"
android:enabled="true"
- android:icon="@drawable/ic_folder"
+ android:icon="@drawable/ic_shortcut_folder"
android:shortcutShortLabel="@string/directories"
android:shortcutLongLabel="@string/directories" >
<intent
@@ -29,7 +29,7 @@
<shortcut
android:shortcutId="video"
android:enabled="false"
- android:icon="@drawable/ic_video"
+ android:icon="@drawable/ic_shortcut_video"
android:shortcutShortLabel="@string/video"
android:shortcutLongLabel="@string/video"
tools:targetApi="n_mr1">
@@ -42,7 +42,7 @@
<shortcut
android:shortcutId="audio"
android:enabled="false"
- android:icon="@drawable/ic_menu_audio"
+ android:icon="@drawable/ic_shortcut_audio"
android:shortcutShortLabel="@string/audio"
android:shortcutLongLabel="@string/audio">
<intent
diff --git a/application/vlc-android/res/xml/shortcuts.xml b/application/vlc-android/res/xml/shortcuts.xml
index 51547f1a90..fb479afbed 100644
--- a/application/vlc-android/res/xml/shortcuts.xml
+++ b/application/vlc-android/res/xml/shortcuts.xml
@@ -17,7 +17,7 @@
<shortcut
android:shortcutId="browser"
android:enabled="true"
- android:icon="@drawable/ic_folder"
+ android:icon="@drawable/ic_shortcut_folder"
android:shortcutShortLabel="@string/directories"
android:shortcutLongLabel="@string/directories" >
<intent
@@ -29,7 +29,7 @@
<shortcut
android:shortcutId="video"
android:enabled="false"
- android:icon="@drawable/ic_video"
+ android:icon="@drawable/ic_shortcut_video"
android:shortcutShortLabel="@string/video"
android:shortcutLongLabel="@string/video"
tools:targetApi="n_mr1">
@@ -42,7 +42,7 @@
<shortcut
android:shortcutId="audio"
android:enabled="false"
- android:icon="@drawable/ic_menu_audio"
+ android:icon="@drawable/ic_shortcut_audio"
android:shortcutShortLabel="@string/audio"
android:shortcutLongLabel="@string/audio">
<intent
More information about the Android
mailing list