class ButtonColors


Represents the background and content colors used in Button.

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 Button.

ColorBuilders.ColorProp

The content or tint color to be used on Button.

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.0.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.0.0
ButtonColors(backgroundColor: @ColorInt Int, contentColor: @ColorInt Int)

Constructor for ButtonColors object.

Parameters
backgroundColor: @ColorInt Int

The background color to be used for Button. Should be in ARGB format.

contentColor: @ColorInt Int

The content color or tint color to be used for Button. Should be in ARGB format.

Public functions

getBackgroundColor

Added in 1.0.0
fun getBackgroundColor(): ColorBuilders.ColorProp

The background color to be used on Button.

getContentColor

Added in 1.0.0
fun getContentColor(): ColorBuilders.ColorProp

The content or tint color to be used on Button.

primaryButtonColors

Added in 1.0.0
java-static fun primaryButtonColors(colors: Colors): ButtonColors

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

secondaryButtonColors

Added in 1.0.0
java-static fun secondaryButtonColors(colors: Colors): ButtonColors

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