mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-27 05:23:00 +00:00
fixed accent color for slider
This commit is contained in:
parent
9c2b530d4d
commit
8643ced9f4
2 changed files with 8 additions and 3 deletions
|
@ -14,7 +14,11 @@ class ThemedMaterialSlider@JvmOverloads constructor(
|
||||||
) : Slider(context, attributeSet, defStyleAttr) {
|
) : Slider(context, attributeSet, defStyleAttr) {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
thumbStrokeColor = ColorStateList.valueOf(context.defPrefs.managerAccent)
|
val accentValue = ColorStateList.valueOf(context.defPrefs.managerAccent)
|
||||||
|
thumbTintList = accentValue
|
||||||
|
trackActiveTintList = accentValue
|
||||||
|
trackInactiveTintList = accentValue.withAlpha(70)
|
||||||
|
haloTintList = accentValue.withAlpha(60)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -21,7 +21,8 @@
|
||||||
android:layout_below="@id/serviced_header"
|
android:layout_below="@id/serviced_header"
|
||||||
android:layout_marginTop="24dp"
|
android:layout_marginTop="24dp"
|
||||||
android:valueFrom="1"
|
android:valueFrom="1"
|
||||||
android:valueTo="15"/>
|
android:valueTo="15"
|
||||||
|
app:haloColor=""/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Reference in a new issue