RemoteTextButtonColors

class RemoteTextButtonColors


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

RemoteTextButtonColors(
    containerColor: RemoteColor,
    contentColor: RemoteColor,
    disabledContainerColor: RemoteColor,
    disabledContentColor: RemoteColor
)

Public functions

RemoteTextButtonColors
copy(
    containerColor: RemoteColor?,
    contentColor: RemoteColor?,
    disabledContainerColor: RemoteColor?,
    disabledContentColor: RemoteColor?
)

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

Public properties

RemoteColor

the background color of this text button when enabled.

RemoteColor

the content color of this text button when enabled.

RemoteColor

the background color of this text button when not enabled.

RemoteColor

the content color of this text button when not enabled.

Public constructors

RemoteTextButtonColors

Added in 1.0.0-alpha01
RemoteTextButtonColors(
    containerColor: RemoteColor,
    contentColor: RemoteColor,
    disabledContainerColor: RemoteColor,
    disabledContentColor: RemoteColor
)
Parameters
containerColor: RemoteColor

the background color of this text button when enabled.

contentColor: RemoteColor

the content color of this text button when enabled.

disabledContainerColor: RemoteColor

the background color of this text button when not enabled.

disabledContentColor: RemoteColor

the content color of this text button when not enabled.

Public functions

copy

Added in 1.0.0-alpha01
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: RemoteColor? = this.containerColor

the background color of this text button when enabled.

contentColor: RemoteColor? = this.contentColor

the content color of this text button when enabled.

disabledContainerColor: RemoteColor? = this.disabledContainerColor

the background color of this text button when not enabled.

disabledContentColor: RemoteColor? = this.disabledContentColor

the content color of this text button when not enabled.

Public properties

containerColor

Added in 1.0.0-alpha01
val containerColorRemoteColor

the background color of this text button when enabled.

contentColor

Added in 1.0.0-alpha01
val contentColorRemoteColor

the content color of this text button when enabled.

disabledContainerColor

Added in 1.0.0-alpha01
val disabledContainerColorRemoteColor

the background color of this text button when not enabled.

disabledContentColor

Added in 1.0.0-alpha01
val disabledContentColorRemoteColor

the content color of this text button when not enabled.