Use theme primary color for slider track (#7102)
(cherry picked from commit bc053580ad
)
This commit is contained in:
parent
aab7795b4c
commit
55b0b57699
5
app/src/main/res/color/slider_active_track.xml
Normal file
5
app/src/main/res/color/slider_active_track.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="?attr/colorPrimary" android:state_enabled="true"/>
|
||||||
|
<item android:alpha="@dimen/material_emphasis_disabled" android:color="?attr/colorOnSurface"/>
|
||||||
|
</selector>
|
5
app/src/main/res/color/slider_inactive_track.xml
Normal file
5
app/src/main/res/color/slider_inactive_track.xml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.24" android:color="?attr/colorPrimary" android:state_enabled="true"/>
|
||||||
|
<item android:alpha="@dimen/material_emphasis_disabled" android:color="?attr/colorOnSurface"/>
|
||||||
|
</selector>
|
@ -192,6 +192,8 @@
|
|||||||
<style name="Widget.Tachiyomi.Slider" parent="Widget.Material3.Slider">
|
<style name="Widget.Tachiyomi.Slider" parent="Widget.Material3.Slider">
|
||||||
<item name="labelBehavior">gone</item>
|
<item name="labelBehavior">gone</item>
|
||||||
<item name="tickVisible">false</item>
|
<item name="tickVisible">false</item>
|
||||||
|
<item name="trackColorInactive">@color/slider_inactive_track</item>
|
||||||
|
<item name="trackColorActive">@color/slider_active_track</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user