ButtonColors

Added in 1.1.0
Deprecated in 1.2.0

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

ButtonColors(
    backgroundColor: ColorBuilders.ColorProp,
    contentColor: ColorBuilders.ColorProp
)

Constructor for ButtonColors object.

ButtonColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)

Constructor for ButtonColors object.

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 ButtonColors object, using the current Primary colors from the given .

java-static ButtonColors

Returns a ButtonColors object, using the current Surface colors from the given .

Public constructors

ButtonColors

Added in 1.1.0
Deprecated in 1.2.0
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

Added in 1.1.0
Deprecated in 1.2.0
ButtonColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)

Constructor for ButtonColors object.

Parameters
backgroundColor: @ColorInt Int

The background color to be used for a button Tiles component. Should be in ARGB format.

contentColor: @ColorInt Int

The content color or tint color to be used for a button Tiles component. Should be in ARGB format.

Public functions

getBackgroundColor

Added in 1.1.0
Deprecated in 1.2.0
fun getBackgroundColor(): ColorBuilders.ColorProp

The background color to be used on a button Tiles components.

getContentColor

Added in 1.1.0
Deprecated in 1.2.0
fun getContentColor(): ColorBuilders.ColorProp

The content or tint color to be used on a button Tiles components.

primaryButtonColors

Added in 1.1.0
Deprecated in 1.2.0
java-static fun primaryButtonColors(colors: Colors): ButtonColors

Returns a ButtonColors object, using the current Primary colors from the given .

secondaryButtonColors

Added in 1.1.0
Deprecated in 1.2.0
java-static fun secondaryButtonColors(colors: Colors): ButtonColors

Returns a ButtonColors object, using the current Surface colors from the given .