Class

RemoteTextButtonColors

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public class RemoteTextButtonColors(
    public val containerColor: RemoteColor,
    public val contentColor: RemoteColor,
    public val disabledContainerColor: RemoteColor,
    public val disabledContentColor: RemoteColor,
)

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

public fun copy(
        containerColor: RemoteColor? = this.containerColor,
        contentColor: RemoteColor? = this.contentColor,
        disabledContainerColor: RemoteColor? = this.disabledContainerColor,
        disabledContentColor: RemoteColor? = this.disabledContentColor,
    ): RemoteTextButtonColors

Returns a copy of this RemoteTextButtonColors 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.