🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

TextButtonColors

Represents the container and content colors used in a text button in different states.

Source set: Android
public class TextButtonColors(
    public val containerColor: Color,
    public val contentColor: Color,
    public val disabledContainerColor: Color,
    public val disabledContentColor: Color,
)

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.

Parameters

containerColor the background color of this text button when enabled.
contentColor the content color of this text button when enabled.
disabledContainerColor the background color of this text button when not enabled.
disabledContentColor the content color of this text button when not enabled.

Functions

copy

Source set: Android
public 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 the background color of this text button when enabled.
contentColor the content color of this text button when enabled.
disabledContainerColor the background color of this text button when not enabled.
disabledContentColor the content color of this text button when not enabled.

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

Content updated: