mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-19 16:45:20 +01:00
MD3 look for Smart playlist buttons
This commit is contained in:
parent
5d8ad186d5
commit
58feab5c23
5 changed files with 72 additions and 138 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue