Fixed purpleish color on Volume Seekbar
This commit is contained in:
parent
347d6c5238
commit
a3cee7d5f4
2 changed files with 6 additions and 16 deletions
|
@ -24,7 +24,6 @@ import androidx.annotation.ColorInt
|
|||
import androidx.annotation.LayoutRes
|
||||
import code.name.monkey.appthemehelper.ThemeStore
|
||||
import code.name.monkey.appthemehelper.util.TintHelper
|
||||
import com.google.android.material.slider.Slider
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
fun <T : View> ViewGroup.inflate(@LayoutRes layout: Int): T {
|
||||
|
@ -50,13 +49,6 @@ fun EditText.appHandleColor(): EditText {
|
|||
return this
|
||||
}
|
||||
|
||||
fun Slider.setRange(progress: Float, to: Float) {
|
||||
valueFrom = 0F
|
||||
valueTo = to
|
||||
value = progress
|
||||
}
|
||||
|
||||
|
||||
fun SeekBar.applyColor(@ColorInt color: Int) {
|
||||
thumbTintList = ColorStateList.valueOf(color)
|
||||
progressTintList = ColorStateList.valueOf(color)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue