RemoteTextButtonColors

class RemoteTextButtonColors


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

See RemoteTextButtonDefaults.textButtonColors and RemoteTextButtonDefaults.filledTonalTextButtonColors for the default colors used in a RemoteTextButton.

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-alpha16
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-alpha16
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.

Returns
RemoteTextButtonColors

a copy of this RemoteTextButtonColors with the specified values overridden

Public properties

containerColor

Added in 1.0.0-alpha16
val containerColor: RemoteColor

the background color of this text button when enabled.

contentColor

Added in 1.0.0-alpha16
val contentColor: RemoteColor

the content color of this text button when enabled.

disabledContainerColor

Added in 1.0.0-alpha16
val disabledContainerColor: RemoteColor

the background color of this text button when not enabled.

disabledContentColor

Added in 1.0.0-alpha16
val disabledContentColor: RemoteColor

the content color of this text button when not enabled.