ButtonColors
class ButtonColors
Represents the background and content colors used in a button Tiles component.
See PRIMARY_COLORS for the default colors used in a primary styled Button. See SECONDARY_COLORS for the default colors used in a secondary styled Button.
Summary
Public constructors |
|---|
Constructor for |
Constructor for |
Public functions |
|
|---|---|
ColorBuilders.ColorProp |
The background color to be used on a button Tiles components. |
ColorBuilders.ColorProp |
The content or tint color to be used on a button Tiles components. |
java-static ButtonColors |
Returns a |
java-static ButtonColors |
Returns a |
Public constructors
ButtonColors(
backgroundColor: ColorBuilders.ColorProp,
contentColor: ColorBuilders.ColorProp
)
Constructor for ButtonColors object.
| Parameters | |
|---|---|
backgroundColor: ColorBuilders.ColorProp |
The background color to be used for a button. |
contentColor: ColorBuilders.ColorProp |
The content color or tint color to be used for a button. |
ButtonColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)
Constructor for ButtonColors object.
Public functions
fungetBackgroundColor(): ColorBuilders.ColorProp
The background color to be used on a button Tiles components.
fungetContentColor(): ColorBuilders.ColorProp
The content or tint color to be used on a button Tiles components.
java-static funprimaryButtonColors(colors: Colors): ButtonColors
Returns a ButtonColors object, using the current Primary colors from the given Colors.
java-static funsecondaryButtonColors(colors: Colors): ButtonColors
Returns a ButtonColors object, using the current Surface colors from the given Colors.