Class

RemoteButtonColors

Represents the container and content colors used in buttons in different states.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public class RemoteButtonColors(
    public val containerColor: RemoteColor,
    public val contentColor: RemoteColor,
    public val secondaryContentColor: RemoteColor,
    public val iconColor: RemoteColor,
    public val disabledContainerColor: RemoteColor,
    public val disabledContentColor: RemoteColor,
    public val disabledSecondaryContentColor: RemoteColor,
    public val disabledIconColor: RemoteColor,
)

Represents the container and content colors used in buttons in different states.

Parameters

containerColor The background color of this RemoteButton when enabled (overridden by the containerPainter parameter on Buttons with image backgrounds).
contentColor The content color of this RemoteButton when enabled.
secondaryContentColor The content color of this RemoteButton when enabled.
iconColor The content color of this RemoteButton when enabled.
disabledContainerColor The background color of this RemoteButton when not enabled (overridden by the disabledContainerPainter parameter on Buttons with image backgrounds)
disabledContentColor The content color of this RemoteButton when not enabled.
disabledSecondaryContentColor The content color of this RemoteButton when not enabled.
disabledIconColor The content color of this RemoteButton when not enabled.

Functions

copy

public fun copy(
        containerColor: RemoteColor? = this.containerColor,
        contentColor: RemoteColor? = this.contentColor,
        secondaryContentColor: RemoteColor? = this.secondaryContentColor,
        iconColor: RemoteColor? = this.iconColor,
        disabledContainerColor: RemoteColor? = this.disabledContainerColor,
        disabledContentColor: RemoteColor? = this.disabledContentColor,
        disabledSecondaryContentColor: RemoteColor? = this.disabledSecondaryContentColor,
        disabledIconColor: RemoteColor? = this.disabledIconColor,
    ): RemoteButtonColors

Returns a copy of this RemoteButtonColors optionally overriding some of the values.