ButtonColors
class ButtonColors
Represents the container and content colors used in buttons, such as textEdgeButton or iconEdgeButton.
Summary
Public constructors |
|---|
ButtonColors( |
Public functions |
|
|---|---|
ButtonColors |
copy(Returns a copy of this |
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
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
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
val containerColor: LayoutColor
The container color to be used for a button's background.
secondaryLabelColor
val secondaryLabelColor: LayoutColor
The secondary label color to be used for a button.