[Android] Fix the favorite icon color on cards

Nicolas Pomepuy git at videolan.org
Fri Nov 18 12:29:45 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Nov 14 08:56:33 2022 +0100| [84e058829cb5e0ce01d44e58924874a751d5b871] | committer: Nicolas Pomepuy

Fix the favorite icon color on cards

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

 .../main/res/drawable/ic_emoji_favorite_white.xml  | 36 ++++++++++++++++++++++
 .../res/layout/audio_browser_card_item.xml         |  2 +-
 2 files changed, 37 insertions(+), 1 deletion(-)

diff --git a/application/resources/src/main/res/drawable/ic_emoji_favorite_white.xml b/application/resources/src/main/res/drawable/ic_emoji_favorite_white.xml
new file mode 100644
index 0000000000..9bea957629
--- /dev/null
+++ b/application/resources/src/main/res/drawable/ic_emoji_favorite_white.xml
@@ -0,0 +1,36 @@
+<!--
+  ~ *************************************************************************
+  ~  ic_emoji_favorite.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"
+        xmlns:tools="http://schemas.android.com/tools"
+        android:width="12dp"
+        android:height="12dp"
+        android:viewportWidth="12"
+        android:viewportHeight="12">
+    <path
+            android:fillColor="@color/white"
+            tools:fillColor="#fff"
+            android:pathData="M6.675,10.065C6.295,10.41 5.71,10.41 5.33,10.06L5.275,10.01C2.65,7.635 0.935,6.08 1,4.14 1.03,3.29 1.465,2.475 2.17,1.995 3.49,1.095 5.12,1.515 6,2.545 6.88,1.515 8.51,1.09 9.83,1.995 10.535,2.475 10.97,3.29 11,4.14 11.07,6.08 9.35,7.635 6.725,10.02Z"
+            android:strokeWidth="2" />
+</vector>
diff --git a/application/vlc-android/res/layout/audio_browser_card_item.xml b/application/vlc-android/res/layout/audio_browser_card_item.xml
index 694eccf58c..6457dec99a 100644
--- a/application/vlc-android/res/layout/audio_browser_card_item.xml
+++ b/application/vlc-android/res/layout/audio_browser_card_item.xml
@@ -212,7 +212,7 @@
                         android:visibility="@{isFavorite ? View.VISIBLE : View.GONE}"
                         vlc:layout_constraintBottom_toBottomOf="parent"
                         vlc:layout_constraintStart_toStartOf="parent"
-                        vlc:srcCompat="@drawable/ic_emoji_favorite" />
+                        vlc:srcCompat="@drawable/ic_emoji_favorite_white" />
 
             </androidx.constraintlayout.widget.ConstraintLayout>
 



More information about the Android mailing list