ButtonColors
class ButtonColors
Represents the container and content colors used in buttons in different states.
Summary
Public constructors |
|---|
Public functions |
|
|---|---|
ButtonColors |
copy(Returns a copy of this |
open operator Boolean |
|
open Int |
hashCode() |
Public properties |
|
|---|---|
Color |
The background color of this |
Color |
The content color of this |
Color |
The background color of this |
Color |
The content color of this |
Color |
The content color of this |
Color |
The content color of this |
Color |
The content color of this |
Color |
The content color of this |
Public constructors
ButtonColors
ButtonColors(
containerColor: Color,
contentColor: Color,
secondaryContentColor: Color,
iconColor: Color,
disabledContainerColor: Color,
disabledContentColor: Color,
disabledSecondaryContentColor: Color,
disabledIconColor: Color
)
| Parameters | |
|---|---|
containerColor: Color |
The background color of this |
contentColor: Color |
The content color of this |
secondaryContentColor: Color |
The content color of this |
iconColor: Color |
The content color of this |
disabledContainerColor: Color |
The background color of this |
disabledContentColor: Color |
The content color of this |
disabledSecondaryContentColor: Color |
The content color of this |
disabledIconColor: Color |
The content color of this |
Public functions
copy
fun copy(
containerColor: Color = Color.Unspecified,
contentColor: Color = Color.Unspecified,
secondaryContentColor: Color = Color.Unspecified,
iconColor: Color = Color.Unspecified,
disabledContainerColor: Color = Color.Unspecified,
disabledContentColor: Color = Color.Unspecified,
disabledSecondaryContentColor: Color = Color.Unspecified,
disabledIconColor: Color = Color.Unspecified
): ButtonColors
Returns a copy of this ButtonColors, optionally overriding some of the values.
| Parameters | |
|---|---|
containerColor: Color = Color.Unspecified |
The background color of this |
contentColor: Color = Color.Unspecified |
The content color of this |
secondaryContentColor: Color = Color.Unspecified |
The content color of this |
iconColor: Color = Color.Unspecified |
The content color of this |
disabledContainerColor: Color = Color.Unspecified |
The background color of this |
disabledContentColor: Color = Color.Unspecified |
The content color of this |
disabledSecondaryContentColor: Color = Color.Unspecified |
The content color of this |
disabledIconColor: Color = Color.Unspecified |
The content color of this |
Public properties
containerColor
val containerColor: Color
The background color of this Button when enabled (overridden by the containerPainter parameter on Buttons with image backgrounds).
disabledContainerColor
val disabledContainerColor: Color
The background color of this Button when not enabled (overridden by the disabledContainerPainter parameter on Buttons with image backgrounds)
disabledContentColor
val disabledContentColor: Color
The content color of this Button when not enabled.
disabledSecondaryContentColor
val disabledSecondaryContentColor: Color
The content color of this Button when not enabled.
secondaryContentColor
val secondaryContentColor: Color
The content color of this Button when enabled.