class ButtonColors


Represents the container and content colors used in buttons, such as textEdgeButton or iconEdgeButton.

Summary

Public constructors

ButtonColors(
    containerColor: LayoutColor,
    iconColor: LayoutColor,
    labelColor: LayoutColor,
    secondaryLabelColor: LayoutColor
)

Public functions

ButtonColors
copy(
    containerColor: LayoutColor,
    iconColor: LayoutColor,
    labelColor: LayoutColor,
    secondaryLabelColor: LayoutColor
)

Returns a copy of this androidx.wear.protolayout.material3.ButtonColors, optionally overriding some of the values.

Public properties

LayoutColor

The container color to be used for a button's background.

LayoutColor

The icon tint color to be used for a button.

LayoutColor

The label color to be used for a button.

LayoutColor

The secondary label color to be used for a button.

Public constructors

ButtonColors

Added in 1.3.0-alpha09
ButtonColors(
    containerColor: LayoutColor = Color.BLACK.argb,
    iconColor: LayoutColor = Color.BLACK.argb,
    labelColor: LayoutColor = Color.BLACK.argb,
    secondaryLabelColor: LayoutColor = Color.BLACK.argb
)
Parameters
containerColor: LayoutColor = Color.BLACK.argb

The container color to be used for a button's background.

iconColor: LayoutColor = Color.BLACK.argb

The icon tint color to be used for a button.

labelColor: LayoutColor = Color.BLACK.argb

The label color to be used for a button.

secondaryLabelColor: LayoutColor = Color.BLACK.argb

The secondary label color to be used for a button.

Public functions

copy

Added in 1.3.0-alpha09
fun copy(
    containerColor: LayoutColor = this.containerColor,
    iconColor: LayoutColor = this.iconColor,
    labelColor: LayoutColor = this.labelColor,
    secondaryLabelColor: LayoutColor = this.secondaryLabelColor
): ButtonColors

Returns a copy of this androidx.wear.protolayout.material3.ButtonColors, optionally overriding some of the values.

Parameters
containerColor: LayoutColor = this.containerColor

The container color to be used for a button's background.

iconColor: LayoutColor = this.iconColor

The icon tint color to be used for a button.

labelColor: LayoutColor = this.labelColor

The label color to be used for a button.

secondaryLabelColor: LayoutColor = this.secondaryLabelColor

The secondary label color to be used for a button.

Public properties

containerColor

Added in 1.3.0-alpha09
val containerColorLayoutColor

The container color to be used for a button's background.

iconColor

Added in 1.3.0-alpha09
val iconColorLayoutColor

The icon tint color to be used for a button.

labelColor

Added in 1.3.0-alpha09
val labelColorLayoutColor

The label color to be used for a button.

secondaryLabelColor

Added in 1.3.0-alpha09
val secondaryLabelColorLayoutColor

The secondary label color to be used for a button.