ButtonColors
public 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 methods |
|
|---|---|
@NonNull ColorBuilders.ColorProp |
The background color to be used on a button Tiles components. |
@NonNull ColorBuilders.ColorProp |
The content or tint color to be used on a button Tiles components. |
static @NonNull ButtonColors |
Returns a |
static @NonNull ButtonColors |
Returns a |
Public constructors
publicButtonColors(
@NonNull ColorBuilders.ColorProp backgroundColor,
@NonNull ColorBuilders.ColorProp contentColor
)
Constructor for ButtonColors object.
| Parameters | |
|---|---|
@NonNull ColorBuilders.ColorProp backgroundColor |
The background color to be used for a button. |
@NonNull ColorBuilders.ColorProp contentColor |
The content color or tint color to be used for a button. |
publicButtonColors(@ColorInt int backgroundColor, @ColorInt int contentColor)
Constructor for ButtonColors object.
Public methods
public @NonNull ColorBuilders.ColorPropgetBackgroundColor()
The background color to be used on a button Tiles components.
public @NonNull ColorBuilders.ColorPropgetContentColor()
The content or tint color to be used on a button Tiles components.
public static @NonNull ButtonColorsprimaryButtonColors(@NonNull Colors colors)
Returns a ButtonColors object, using the current Primary colors from the given Colors.
public static @NonNull ButtonColorssecondaryButtonColors(@NonNull Colors colors)
Returns a ButtonColors object, using the current Surface colors from the given Colors.