[Android] Fix audio player next and previous icons colors
Nicolas Pomepuy
git at videolan.org
Wed Aug 5 14:25:24 CEST 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Aug 4 06:37:04 2020 +0200| [7558b976de83b9f77c120bfd330b9123450ab11e] | committer: Nicolas Pomepuy
Fix audio player next and previous icons colors
Fixes #1439
> https://code.videolan.org/videolan/vlc-android/commit/7558b976de83b9f77c120bfd330b9123450ab11e
---
.../main/res/color/standard_selection_black.xml | 30 ++++++++++++++++++++++
.../resources/src/main/res/drawable/ic_next.xml | 2 +-
.../src/main/res/drawable/ic_previous.xml | 2 +-
3 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/application/resources/src/main/res/color/standard_selection_black.xml b/application/resources/src/main/res/color/standard_selection_black.xml
new file mode 100644
index 000000000..f543a7835
--- /dev/null
+++ b/application/resources/src/main/res/color/standard_selection_black.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?><!--
+ ~ *************************************************************************
+ ~ standard_selection.xml
+ ~ **************************************************************************
+ ~ Copyright © 2020 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.
+ ~ ***************************************************************************
+ ~
+ ~
+ -->
+
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:state_selected="true" android:color="@color/orange300" />
+ <item android:state_pressed="true" android:color="@color/orange300" />
+ <item android:state_focused="true" android:color="@color/orange300" />
+ <item android:color="@color/black" />
+</selector>
\ No newline at end of file
diff --git a/application/resources/src/main/res/drawable/ic_next.xml b/application/resources/src/main/res/drawable/ic_next.xml
index 8cdffa3ff..8fb063620 100644
--- a/application/resources/src/main/res/drawable/ic_next.xml
+++ b/application/resources/src/main/res/drawable/ic_next.xml
@@ -29,7 +29,7 @@
android:viewportHeight="24">
<path
android:fillAlpha="1"
- android:fillColor="@color/standard_selection_control_normal"
+ android:fillColor="@color/standard_selection_black"
android:fillType="evenOdd"
android:pathData="m18,6.0002c-0.554,0 -1,0.4459 -1,0.9999v9.999c0,0.5539 0.446,0.9999 1,0.9999 0.554,0 1,-0.446 1,-0.9999v-9.999c0,-0.554 -0.446,-0.9999 -1,-0.9999zM7.0195,6.0002c-0.5591,-0.011 -1.0184,0.4387 -1.0195,0.9979v9.999c-0.0009,0.8142 0.9198,1.2882 1.582,0.8144l7,-4.9995c0.5579,-0.3988 0.5579,-1.228 0,-1.6268l-7,-4.9995c-0.1644,-0.1172 -0.3605,-0.1819 -0.5625,-0.1855z"
android:strokeWidth="1.99990106"
diff --git a/application/resources/src/main/res/drawable/ic_previous.xml b/application/resources/src/main/res/drawable/ic_previous.xml
index 4eb3e2dbd..79a18b037 100644
--- a/application/resources/src/main/res/drawable/ic_previous.xml
+++ b/application/resources/src/main/res/drawable/ic_previous.xml
@@ -29,7 +29,7 @@
android:viewportHeight="24">
<path
android:fillAlpha="1"
- android:fillColor="@color/standard_selection_control_normal"
+ android:fillColor="@color/standard_selection_black"
android:fillType="evenOdd"
android:pathData="m7,17.9999c0.554,0 1,-0.446 1,-0.9999v-9.999c0,-0.554 -0.446,-0.9999 -1,-0.9999 -0.554,0 -1,0.4459 -1,0.9999v9.999c0,0.5539 0.446,0.9999 1,0.9999zM17.9805,17.9999c0.5591,0.011 1.0184,-0.4388 1.0195,-0.9979v-9.999c0.0009,-0.8142 -0.9198,-1.2882 -1.582,-0.8144l-7,4.9995c-0.5579,0.3988 -0.5579,1.228 0,1.6268l7,4.9995c0.1644,0.1172 0.3605,0.1819 0.5625,0.1855z"
android:strokeWidth="1.99990106"
More information about the Android
mailing list