[Android] Add new chapter icon

Alexandre Perraud git at videolan.org
Tue Nov 2 13:00:50 UTC 2021


vlc-android | branch: master | Alexandre Perraud <alexandre at videolan.org> | Mon Sep 20 17:05:16 2021 +0200| [2e5e769f13ce10bc36cb9f1e6a7c999085863872] | committer: Nicolas Pomepuy

Add new chapter icon

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

 .../resources/src/main/res/drawable/ic_chapter.xml     | 18 +++++++++++-------
 .../resources/src/main/res/drawable/ic_chapter_w.xml   |  9 ---------
 application/vlc-android/res/values/styles.xml          |  6 +++---
 3 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/application/resources/src/main/res/drawable/ic_chapter.xml b/application/resources/src/main/res/drawable/ic_chapter.xml
index ff0e58967..907914256 100644
--- a/application/resources/src/main/res/drawable/ic_chapter.xml
+++ b/application/resources/src/main/res/drawable/ic_chapter.xml
@@ -1,9 +1,13 @@
+<!--From Google Fonts auto_stories_black_48dp.svg-->
+
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="24"
-        android:viewportHeight="24">
-    <path
-            android:fillColor="@color/standard_selection_control_normal"
-            android:pathData="M22.47,5.2C22,4.96 21.51,4.76 21,4.59v12.03C19.86,16.21 18.69,16 17.5,16c-1.9,0 -3.78,0.54 -5.5,1.58V5.48C10.38,4.55 8.51,4 6.5,4C4.71,4 3.02,4.44 1.53,5.2C1.2,5.36 1,5.71 1,6.08v12.08c0,0.58 0.47,0.99 1,0.99c0.16,0 0.32,-0.04 0.48,-0.12C3.69,18.4 5.05,18 6.5,18c2.07,0 3.98,0.82 5.5,2c1.52,-1.18 3.43,-2 5.5,-2c1.45,0 2.81,0.4 4.02,1.04c0.16,0.08 0.32,0.12 0.48,0.12c0.52,0 1,-0.41 1,-0.99V6.08C23,5.71 22.8,5.36 22.47,5.2zM10,16.62C8.86,16.21 7.69,16 6.5,16c-1.19,0 -2.36,0.21 -3.5,0.62V6.71C4.11,6.24 5.28,6 6.5,6C7.7,6 8.89,6.25 10,6.72V16.62zM19,0.5l-5,5V15l5,-4.5V0.5z" />
+    xmlns:tools="http://schemas.android.com/tools"
+    android:width="48dp"
+    android:height="48dp"
+    android:viewportWidth="24"
+    android:viewportHeight="24">
+  <path
+      android:pathData="M22.47,5.2C22,4.96 21.51,4.76 21,4.59v12.03C19.86,16.21 18.69,16 17.5,16c-1.9,0 -3.78,0.54 -5.5,1.58V5.48C10.38,4.55 8.51,4 6.5,4C4.71,4 3.02,4.44 1.53,5.2C1.2,5.36 1,5.71 1,6.08v12.08c0,0.58 0.47,0.99 1,0.99c0.16,0 0.32,-0.04 0.48,-0.12C3.69,18.4 5.05,18 6.5,18c2.07,0 3.98,0.82 5.5,2c1.52,-1.18 3.43,-2 5.5,-2c1.45,0 2.81,0.4 4.02,1.04c0.16,0.08 0.32,0.12 0.48,0.12c0.52,0 1,-0.41 1,-0.99V6.08C23,5.71 22.8,5.36 22.47,5.2zM10,16.62C8.86,16.21 7.69,16 6.5,16c-1.19,0 -2.36,0.21 -3.5,0.62V6.71C4.11,6.24 5.28,6 6.5,6C7.7,6 8.89,6.25 10,6.72V16.62zM19,0.5l-5,5V15l5,-4.5V0.5z"
+      tools:fillColor="#ffffff"
+      android:fillColor="?attr/player_icon_color"/>
 </vector>
diff --git a/application/resources/src/main/res/drawable/ic_chapter_w.xml b/application/resources/src/main/res/drawable/ic_chapter_w.xml
deleted file mode 100644
index ebd8bf449..000000000
--- a/application/resources/src/main/res/drawable/ic_chapter_w.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
-        android:width="24dp"
-        android:height="24dp"
-        android:viewportWidth="24"
-        android:viewportHeight="24">
-    <path
-            android:fillColor="@color/standard_selection"
-            android:pathData="M22.47,5.2C22,4.96 21.51,4.76 21,4.59v12.03C19.86,16.21 18.69,16 17.5,16c-1.9,0 -3.78,0.54 -5.5,1.58V5.48C10.38,4.55 8.51,4 6.5,4C4.71,4 3.02,4.44 1.53,5.2C1.2,5.36 1,5.71 1,6.08v12.08c0,0.58 0.47,0.99 1,0.99c0.16,0 0.32,-0.04 0.48,-0.12C3.69,18.4 5.05,18 6.5,18c2.07,0 3.98,0.82 5.5,2c1.52,-1.18 3.43,-2 5.5,-2c1.45,0 2.81,0.4 4.02,1.04c0.16,0.08 0.32,0.12 0.48,0.12c0.52,0 1,-0.41 1,-0.99V6.08C23,5.71 22.8,5.36 22.47,5.2zM10,16.62C8.86,16.21 7.69,16 6.5,16c-1.19,0 -2.36,0.21 -3.5,0.62V6.71C4.11,6.24 5.28,6 6.5,6C7.7,6 8.89,6.25 10,6.72V16.62zM19,0.5l-5,5V15l5,-4.5V0.5z" />
-</vector>
diff --git a/application/vlc-android/res/values/styles.xml b/application/vlc-android/res/values/styles.xml
index 4188b4274..dcbfd739f 100644
--- a/application/vlc-android/res/values/styles.xml
+++ b/application/vlc-android/res/values/styles.xml
@@ -255,7 +255,7 @@
         <item name="ic_tips_double_tap">@drawable/tips_double_tap</item>
         <item name="ic_tips_tap">@drawable/tips_tap</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
-        <item name="ic_chapter_normal_style">@drawable/ic_chapter_w</item>
+        <item name="ic_chapter_normal_style">@drawable/ic_chapter</item>
         <item name="ic_bookmark_normal_style">@drawable/ic_bookmark_w</item>
         <item name="ic_equalizer_normal_style">@drawable/ic_equalizer</item>
         <item name="ic_passthrough">@drawable/ic_passthrough_w</item>
@@ -323,7 +323,7 @@
         <item name="ic_tips_double_tap">@drawable/tips_double_tap</item>
         <item name="ic_tips_tap">@drawable/tips_tap</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
-        <item name="ic_chapter_normal_style">@drawable/ic_chapter_w</item>
+        <item name="ic_chapter_normal_style">@drawable/ic_chapter</item>
         <item name="ic_bookmark_normal_style">@drawable/ic_bookmark_w</item>
         <item name="ic_equalizer_normal_style">@drawable/ic_equalizer</item>
         <item name="ic_save">@drawable/ic_save_w</item>
@@ -476,7 +476,7 @@
         <item name="ic_tips_double_tap">@drawable/tips_double_tap</item>
         <item name="ic_tips_tap">@drawable/tips_tap</item>
         <item name="ic_jumpto_normal_style">@drawable/ic_jumpto</item>
-        <item name="ic_chapter_normal_style">@drawable/ic_chapter_w</item>
+        <item name="ic_chapter_normal_style">@drawable/ic_chapter</item>
         <item name="ic_bookmark_normal_style">@drawable/ic_bookmark_w</item>
         <item name="ic_equalizer_normal_style">@drawable/ic_equalizer</item>
         <item name="ic_passthrough">@drawable/ic_passthrough_w</item>



More information about the Android mailing list