[Android] Fix grid/list icons color
Nicolas Pomepuy
git at videolan.org
Tue Nov 26 14:31:14 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Nov 26 13:23:44 2024 +0100| [9b3de81647f865b2d29fe06fcf572dba00b5d166] | committer: Duncan McNamara
Fix grid/list icons color
> https://code.videolan.org/videolan/vlc-android/commit/9b3de81647f865b2d29fe06fcf572dba00b5d166
---
.../resources/src/main/res/drawable/ic_view_grid.xml | 13 +++++++++----
.../resources/src/main/res/drawable/ic_view_list.xml | 4 +++-
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/application/resources/src/main/res/drawable/ic_view_grid.xml b/application/resources/src/main/res/drawable/ic_view_grid.xml
index edd5f45f25..f7d295d0c2 100644
--- a/application/resources/src/main/res/drawable/ic_view_grid.xml
+++ b/application/resources/src/main/res/drawable/ic_view_grid.xml
@@ -1,23 +1,28 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
- android:fillColor="@color/white"
+ tools:fillColor="@color/white"
+ android:fillColor="?attr/colorControlNormal"
android:pathData="M5,11h4c1.1,0 2,-0.9 2,-2V5c0,-1.1 -0.9,-2 -2,-2H5C3.9,3 3,3.9 3,5v4C3,10.1 3.9,11 5,11z" />
<path
- android:fillColor="@color/white"
+ tools:fillColor="@color/white"
+ android:fillColor="?attr/colorControlNormal"
android:pathData="M5,21h4c1.1,0 2,-0.9 2,-2v-4c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v4C3,20.1 3.9,21 5,21z" />
<path
- android:fillColor="@color/white"
+ tools:fillColor="@color/white"
+ android:fillColor="?attr/colorControlNormal"
android:pathData="M13,5v4c0,1.1 0.9,2 2,2h4c1.1,0 2,-0.9 2,-2V5c0,-1.1 -0.9,-2 -2,-2h-4C13.9,3 13,3.9 13,5z" />
<path
- android:fillColor="@color/white"
+ tools:fillColor="@color/white"
+ android:fillColor="?attr/colorControlNormal"
android:pathData="M15,21h4c1.1,0 2,-0.9 2,-2v-4c0,-1.1 -0.9,-2 -2,-2h-4c-1.1,0 -2,0.9 -2,2v4C13,20.1 13.9,21 15,21z" />
</vector>
diff --git a/application/resources/src/main/res/drawable/ic_view_list.xml b/application/resources/src/main/res/drawable/ic_view_list.xml
index 71ae2566ee..d4731acae6 100644
--- a/application/resources/src/main/res/drawable/ic_view_list.xml
+++ b/application/resources/src/main/res/drawable/ic_view_list.xml
@@ -1,4 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:width="24dp"
android:height="24dp"
android:autoMirrored="true"
@@ -6,7 +7,8 @@
android:viewportHeight="24">
<path
- android:fillColor="@color/white"
+ tools:fillColor="@color/white"
+ android:fillColor="?attr/colorControlNormal"
android:pathData="M4,14h2c0.55,0 1,-0.45 1,-1v-2c0,-0.55 -0.45,-1 -1,-1H4c-0.55,0 -1,0.45 -1,1v2C3,13.55 3.45,14 4,14zM4,19h2c0.55,0 1,-0.45 1,-1v-2c0,-0.55 -0.45,-1 -1,-1H4c-0.55,0 -1,0.45 -1,1v2C3,18.55 3.45,19 4,19zM4,9h2c0.55,0 1,-0.45 1,-1V6c0,-0.55 -0.45,-1 -1,-1H4C3.45,5 3,5.45 3,6v2C3,8.55 3.45,9 4,9zM9,14h11c0.55,0 1,-0.45 1,-1v-2c0,-0.55 -0.45,-1 -1,-1H9c-0.55,0 -1,0.45 -1,1v2C8,13.55 8.45,14 9,14zM9,19h11c0.55,0 1,-0.45 1,-1v-2c0,-0.55 -0.45,-1 -1,-1H9c-0.55,0 -1,0.45 -1,1v2C8,18.55 8.45,19 9,19zM8,6v2c0,0.55 0.45,1 1,1h11c0.55,0 1,-0.45 1,-1V6c0,-0.55 -0.45,-1 -1,-1H9C8.45,5 8,5.45 8,6z" />
</vector>
More information about the Android
mailing list