public object RemoteEdgeButtonDefaults
Contains the default values used by RemoteEdgeButton.
Properties
ExtraSmallIconSize
public val ExtraSmallIconSize: RemoteDp = 24.rdp
The recommended icon size when used with RemoteEdgeButtonSize.ExtraSmall.
SmallIconSize
public val SmallIconSize: RemoteDp = 32.rdp
The recommended icon size when used with RemoteEdgeButtonSize.Small.
MediumIconSize
public val MediumIconSize: RemoteDp = 32.rdp
The recommended icon size when used with RemoteEdgeButtonSize.Medium.
LargeIconSize
public val LargeIconSize: RemoteDp = 36.rdp
The recommended icon size when used with RemoteEdgeButtonSize.Large.
shape
public val shape: RemoteShape = RemoteEdgeButtonShape(RemoteEdgeButtonSize.Small)
The default shape for RemoteEdgeButton.
VerticalPadding
public val VerticalPadding: RemoteDp = 3.rdp
Padding around the Edge Button on its top and bottom.
TopContentPadding
public val TopContentPadding: RemoteDp = 6.rdp
The recommended top content padding for RemoteEdgeButton.
BottomContentPadding
public val BottomContentPadding: RemoteDp = 8.rdp
The recommended bottom content padding for RemoteEdgeButton.
HorizontalContentPadding
public val HorizontalContentPadding: RemoteDp = 0.rdp
The recommended horizontal content padding for RemoteEdgeButton.
ContentPadding
public val ContentPadding: RemotePaddingValues =
RemotePaddingValues(
leftPadding = HorizontalContentPadding,
topPadding = TopContentPadding,
rightPadding = HorizontalContentPadding,
bottomPadding = BottomContentPadding,
)
The default content padding used by RemoteEdgeButton.
Functions
iconSizeFor
public fun iconSizeFor(edgeButtonSize: RemoteEdgeButtonSize): RemoteDp
Recommended icon size for a given edge button size.
Parameters
| edgeButtonSize | The size of the edge button |
shape
public fun shape(buttonSize: RemoteEdgeButtonSize = RemoteEdgeButtonSize.Small): RemoteShape
The recommended shape for RemoteEdgeButton of a given size.
buttonColors
@Composable public fun buttonColors(): RemoteButtonColors
Creates a RemoteButtonColors that represents the default background and content colors used in a RemoteEdgeButton.
buttonColors
@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.
filledTonalButtonColors
@Composable
public fun filledTonalButtonColors(): RemoteButtonColors
Creates a RemoteButtonColors with filled tonal colors for RemoteEdgeButton.
filledTonalButtonColors
@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.
filledVariantButtonColors
@Composable
public fun filledVariantButtonColors(): RemoteButtonColors
Creates a RemoteButtonColors with higher chroma container colors for RemoteEdgeButton.
filledVariantButtonColors
@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.
outlinedButtonColors
@Composable
public fun outlinedButtonColors(): RemoteButtonColors
Creates a RemoteButtonColors with outlined colors for RemoteEdgeButton.
outlinedButtonColors
@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.