diff --git a/app/src/main/java/com/vanced/manager/ui/core/ThemedMaterialSlider.kt b/app/src/main/java/com/vanced/manager/ui/core/ThemedMaterialSlider.kt index ed89b9b5..a2ad82d0 100644 --- a/app/src/main/java/com/vanced/manager/ui/core/ThemedMaterialSlider.kt +++ b/app/src/main/java/com/vanced/manager/ui/core/ThemedMaterialSlider.kt @@ -7,14 +7,18 @@ import com.google.android.material.slider.Slider import com.vanced.manager.utils.defPrefs import com.vanced.manager.utils.managerAccent -class ThemedMaterialSlider@JvmOverloads constructor( +class ThemedMaterialSlider @JvmOverloads constructor( context: Context, attributeSet: AttributeSet? = null, defStyleAttr: Int = 0 ) : Slider(context, attributeSet, defStyleAttr) { 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) } } \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_serviced_timer.xml b/app/src/main/res/layout/dialog_serviced_timer.xml index f08de4b3..44da7c1a 100644 --- a/app/src/main/res/layout/dialog_serviced_timer.xml +++ b/app/src/main/res/layout/dialog_serviced_timer.xml @@ -21,7 +21,8 @@ android:layout_below="@id/serviced_header" android:layout_marginTop="24dp" android:valueFrom="1" - android:valueTo="15"/> + android:valueTo="15" + app:haloColor=""/>