Added Shuffle fab in songs, albums & artist tab
This commit is contained in:
parent
c80293f33a
commit
6e081f30c0
10 changed files with 90 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue