TextButtonColors
class TextButtonColors
Represents the container and content colors used in a text button in different states.
See TextButtonDefaults.filledTextButtonColors, TextButtonDefaults.filledTonalTextButtonColors, TextButtonDefaults.textButtonColors and TextButtonDefaults.outlinedTextButtonColors for TextButtonColors with different levels of emphasis.
Summary
Public constructors |
|---|
TextButtonColors( |
Public functions |
|
|---|---|
TextButtonColors |
copy(Returns a copy of this TextButtonColors optionally overriding some of the values. |
open operator Boolean |
|
open Int |
hashCode() |
Public properties |
|
|---|---|
Color |
the background color of this text button when enabled. |
Color |
the content color of this text button when enabled. |
Color |
the background color of this text button when not enabled. |
Color |
the content color of this text button when not enabled. |
Public constructors
TextButtonColors
TextButtonColors(
containerColor: Color,
contentColor: Color,
disabledContainerColor: Color,
disabledContentColor: Color
)
| Parameters | |
|---|---|
containerColor: Color |
the background color of this text button when enabled. |
contentColor: Color |
the content color of this text button when enabled. |
disabledContainerColor: Color |
the background color of this text button when not enabled. |
disabledContentColor: Color |
the content color of this text 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
): TextButtonColors
Returns a copy of this TextButtonColors optionally overriding some of the values.
| Parameters | |
|---|---|
containerColor: Color = this.containerColor |
the background color of this text button when enabled. |
contentColor: Color = this.contentColor |
the content color of this text button when enabled. |
disabledContainerColor: Color = this.disabledContainerColor |
the background color of this text button when not enabled. |
disabledContentColor: Color = this.disabledContentColor |
the content color of this text button when not enabled. |
Public properties
disabledContainerColor
val disabledContainerColor: Color
the background color of this text button when not enabled.
disabledContentColor
val disabledContentColor: Color
the content color of this text button when not enabled.