Added Shuffle fab in songs, albums & artist tab

This commit is contained in:
Prathamesh More 2021-09-23 20:56:30 +05:30
parent c80293f33a
commit 6e081f30c0
10 changed files with 90 additions and 5 deletions

View file

@ -128,10 +128,8 @@ fun ExtendedFloatingActionButton.accentColor() {
fun FloatingActionButton.accentColor() {
val color = ThemeStore.accentColor(context)
val textColor = MaterialValueHelper.getPrimaryTextColor(context, ColorUtil.isColorLight(color))
val colorStateList = ColorStateList.valueOf(color)
val textColorStateList = ColorStateList.valueOf(textColor)
backgroundTintList = colorStateList
imageTintList = textColorStateList
backgroundTintList = ColorStateList.valueOf(color)
imageTintList = ColorStateList.valueOf(textColor)
}
fun MaterialButton.applyColor(color: Int) {