MD3 look for Smart playlist buttons

This commit is contained in:
Prathamesh More 2021-12-12 20:58:58 +05:30
parent 5d8ad186d5
commit 58feab5c23
5 changed files with 72 additions and 138 deletions

View file

@ -120,6 +120,14 @@ fun MaterialButton.accentOutlineColor() {
rippleColor = colorStateList
}
fun MaterialButton.elevatedAccentColor() {
if (materialYou) return
val color = ThemeStore.accentColor(context)
val colorStateList = ColorStateList.valueOf(color)
iconTint = colorStateList
rippleColor = colorStateList
}
fun SeekBar.applyColor(@ColorInt color: Int) {
thumbTintList = ColorStateList.valueOf(color)
progressTintList = ColorStateList.valueOf(color)