Added MD3 switch
This commit is contained in:
parent
33a0d113b8
commit
b28d5678bc
9 changed files with 46 additions and 50 deletions
|
@ -135,7 +135,9 @@ fun Button.accentTextColor() {
|
|||
|
||||
fun MaterialButton.accentBackgroundColor() {
|
||||
if (materialYou) return
|
||||
backgroundTintList = ColorStateList.valueOf(context.accentColor())
|
||||
backgroundTintList = ColorStateList(
|
||||
arrayOf(intArrayOf(android.R.attr.state_enabled), intArrayOf()),
|
||||
intArrayOf(context.accentColor(), context.accentColor().addAlpha(0.12f)))
|
||||
}
|
||||
|
||||
fun MaterialButton.accentOutlineColor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue