ButtonColors
-
Cmn
class ButtonColors
Represents the container and content colors used in a button in different states.
Summary
Public constructors |
|
|---|---|
ButtonColors( |
Cmn
|
Public functions |
||
|---|---|---|
ButtonColors |
copy(Returns a copy of this ButtonColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
Public properties |
||
|---|---|---|
Color |
the container color of this |
Cmn
|
Color |
the content color of this |
Cmn
|
Color |
the container color of this |
Cmn
|
Color |
the content color of this |
Cmn
|
Public constructors
ButtonColors
ButtonColors(
containerColor: Color,
contentColor: Color,
disabledContainerColor: Color,
disabledContentColor: Color
)
| Parameters | |
|---|---|
containerColor: Color |
the container color of this |
contentColor: Color |
the content color of this |
disabledContainerColor: Color |
the container color of this |
disabledContentColor: Color |
the content color of this
|
Public functions
copy
fun copy(
containerColor: Color = this.containerColor,
contentColor: Color = this.contentColor,
disabledContainerColor: Color = this.disabledContainerColor,
disabledContentColor: Color = this.disabledContentColor
): ButtonColors
Returns a copy of this ButtonColors, optionally overriding some of the values. This uses the Color.Unspecified to mean “use the value from the source”
Public properties
disabledContainerColor
val disabledContainerColor: Color
the container color of this Button when not enabled.
disabledContentColor
val disabledContentColor: Color
the content color of this Button when not enabled. @constructor create an instance with arbitrary colors.
-
See
ButtonDefaults.buttonColorsfor the default colors used in aButton. -
See
ButtonDefaults.elevatedButtonColorsfor the default colors used in aElevatedButton. -
See
ButtonDefaults.textButtonColorsfor the default colors used in aTextButton.