IconButtonColors
-
Cmn
class IconButtonColors
Represents the container and content colors used in an icon button in different states.
Summary
Public constructors |
|
|---|---|
IconButtonColors(create an instance with arbitrary colors. |
Cmn
|
Public functions |
||
|---|---|---|
IconButtonColors |
copy(Returns a copy of this IconButtonColors, optionally overriding some of the values. |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
Public properties |
||
|---|---|---|
Color |
the container color of this icon button when enabled. |
Cmn
|
Color |
the content color of this icon button when enabled. |
Cmn
|
Color |
the container color of this icon button when not enabled. |
Cmn
|
Color |
the content color of this icon button when not enabled. |
Cmn
|
Public constructors
IconButtonColors
IconButtonColors(
containerColor: Color,
contentColor: Color,
disabledContainerColor: Color,
disabledContentColor: Color
)
create an instance with arbitrary colors.
-
See
IconButtonDefaults.filledIconButtonColorsandIconButtonDefaults.filledTonalIconButtonColorsfor the default colors used in aFilledIconButton. -
See
IconButtonDefaults.outlinedIconButtonVibrantColorsfor the default colors used in anOutlinedIconButton.
| Parameters | |
|---|---|
containerColor: Color |
the container color of this icon button when enabled. |
contentColor: Color |
the content color of this icon button when enabled. |
disabledContainerColor: Color |
the container color of this icon button when not enabled. |
disabledContentColor: Color |
the content color of this icon button when not enabled. |
Public functions
copy
fun copy(
containerColor: Color = this.containerColor,
contentColor: Color = this.contentColor,
disabledContainerColor: Color = this.disabledContainerColor,
disabledContentColor: Color = this.disabledContentColor
): IconButtonColors
Returns a copy of this IconButtonColors, 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 icon button when not enabled.
disabledContentColor
val disabledContentColor: Color
the content color of this icon button when not enabled.