Object

RemoteEdgeButtonDefaults

Contains the default values used by RemoteEdgeButton.

Source set: Android
public object RemoteEdgeButtonDefaults

Contains the default values used by RemoteEdgeButton.

Properties

ExtraSmallIconSize

Source set: Android
public val ExtraSmallIconSize: RemoteDp = 24.rdp

The recommended icon size when used with RemoteEdgeButtonSize.ExtraSmall.

SmallIconSize

Source set: Android
public val SmallIconSize: RemoteDp = 32.rdp

The recommended icon size when used with RemoteEdgeButtonSize.Small.

MediumIconSize

Source set: Android
public val MediumIconSize: RemoteDp = 32.rdp

The recommended icon size when used with RemoteEdgeButtonSize.Medium.

LargeIconSize

Source set: Android
public val LargeIconSize: RemoteDp = 36.rdp

The recommended icon size when used with RemoteEdgeButtonSize.Large.

VerticalPadding

Source set: Android
public val VerticalPadding: RemoteDp = 3.rdp

Padding around the Edge Button on its top and bottom.

TopContentPadding

Source set: Android
public val TopContentPadding: RemoteDp = 6.rdp

The recommended top content padding for RemoteEdgeButton.

BottomContentPadding

Source set: Android
public val BottomContentPadding: RemoteDp = 8.rdp

The recommended bottom content padding for RemoteEdgeButton.

HorizontalContentPadding

Source set: Android
public val HorizontalContentPadding: RemoteDp = 0.rdp

The recommended horizontal content padding for RemoteEdgeButton.

ContentPadding

Source set: Android
public val ContentPadding: RemotePaddingValues =
        RemotePaddingValues(
            leftPadding = HorizontalContentPadding,
            topPadding = TopContentPadding,
            rightPadding = HorizontalContentPadding,
            bottomPadding = BottomContentPadding,
        )

The default content padding used by RemoteEdgeButton.

Functions

iconSizeFor

Source set: Android
public fun iconSizeFor(edgeButtonSize: RemoteEdgeButtonSize): RemoteDp

Recommended icon size for a given edge button size.

Parameters

edgeButtonSize The size of the edge button

shape

Source set: Android
public fun shape(buttonSize: RemoteEdgeButtonSize = RemoteEdgeButtonSize.Small): RemoteShape

The recommended shape for RemoteEdgeButton of a given buttonSize.

Parameters

buttonSize The RemoteEdgeButtonSize of the edge button.

buttonColors

Source set: Android
@Composable
    public fun buttonColors(): RemoteButtonColors

Creates a RemoteButtonColors that represents the default background and content colors used in a RemoteEdgeButton.

buttonColors

Source set: Android
@Composable
    public fun buttonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors that represents the default background and content colors used in a RemoteEdgeButton.

Parameters

containerColor The background color of this RemoteEdgeButton when enabled.
contentColor The content color of this RemoteEdgeButton when enabled.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled.
iconColor The icon color of this RemoteEdgeButton when enabled.
disabledContainerColor The background color of this RemoteEdgeButton when not enabled.
disabledContentColor The content color of this RemoteEdgeButton when not enabled.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled.

filledTonalButtonColors

Source set: Android
@Composable
    public fun filledTonalButtonColors(): RemoteButtonColors

Creates a RemoteButtonColors with filled tonal colors for RemoteEdgeButton.

filledTonalButtonColors

Source set: Android
@Composable
    public fun filledTonalButtonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors with filled tonal colors for RemoteEdgeButton.

Parameters

containerColor The background color of this RemoteEdgeButton when enabled.
contentColor The content color of this RemoteEdgeButton when enabled.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled.
iconColor The icon color of this RemoteEdgeButton when enabled.
disabledContainerColor The background color of this RemoteEdgeButton when not enabled.
disabledContentColor The content color of this RemoteEdgeButton when not enabled.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled.

filledVariantButtonColors

Source set: Android
@Composable
    public fun filledVariantButtonColors(): RemoteButtonColors

Creates a RemoteButtonColors with higher chroma container colors for RemoteEdgeButton.

filledVariantButtonColors

Source set: Android
@Composable
    public fun filledVariantButtonColors(
        containerColor: RemoteColor? = null,
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContainerColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors with higher chroma container colors for RemoteEdgeButton.

Parameters

containerColor The background color of this RemoteEdgeButton when enabled.
contentColor The content color of this RemoteEdgeButton when enabled.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled.
iconColor The icon color of this RemoteEdgeButton when enabled.
disabledContainerColor The background color of this RemoteEdgeButton when not enabled.
disabledContentColor The content color of this RemoteEdgeButton when not enabled.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled.

outlinedButtonColors

Source set: Android
@Composable
    public fun outlinedButtonColors(): RemoteButtonColors

Creates a RemoteButtonColors with outlined colors for RemoteEdgeButton.

outlinedButtonColors

Source set: Android
@Composable
    public fun outlinedButtonColors(
        contentColor: RemoteColor? = null,
        secondaryContentColor: RemoteColor? = null,
        iconColor: RemoteColor? = null,
        disabledContentColor: RemoteColor? = null,
        disabledSecondaryContentColor: RemoteColor? = null,
        disabledIconColor: RemoteColor? = null,
    ): RemoteButtonColors

Creates a RemoteButtonColors with outlined colors for RemoteEdgeButton.

Parameters

contentColor The content color of this RemoteEdgeButton when enabled.
secondaryContentColor The secondary content color of this RemoteEdgeButton when enabled.
iconColor The icon color of this RemoteEdgeButton when enabled.
disabledContentColor The content color of this RemoteEdgeButton when not enabled.
disabledSecondaryContentColor The secondary content color of this RemoteEdgeButton when not enabled.
disabledIconColor The icon color of this RemoteEdgeButton when not enabled.

Content updated: