public object RemoteTextButtonDefaults
Contains the default values used by RemoteTextButton.
Properties
shape
public val shape: RemoteRoundedCornerShape = RemoteCircleShape
Recommended RemoteShape for RemoteTextButton.
pressedShape
public val pressedShape: RemoteCornerBasedShape
Recommended pressed RemoteShape for RemoteTextButton.
SmallButtonSize
public val SmallButtonSize: RemoteDp = 48.rdp
The recommended size for a small button.
DefaultButtonSize
public val DefaultButtonSize: RemoteDp = 52.rdp
The default size applied for buttons.
LargeButtonSize
public val LargeButtonSize: RemoteDp = 60.rdp
The recommended size for a large button.
smallButtonTextStyle
public val smallButtonTextStyle: RemoteTextStyle
The recommended text style for a small button.
defaultButtonTextStyle
public val defaultButtonTextStyle: RemoteTextStyle
The default text style applied for buttons.
largeButtonTextStyle
public val largeButtonTextStyle: RemoteTextStyle
The recommended text style for a large button.
Functions
shapes
@Composable @RemoteComposable public fun shapes(): RemoteTextButtonShapes
Returns the default RemoteTextButtonShapes for a static RemoteTextButton.
Return
a RemoteTextButtonShapes with the default static shape
shapes
@Composable
public fun shapes(shape: RemoteShape): RemoteTextButtonShapes
Returns a RemoteTextButtonShapes for a static RemoteTextButton.
Parameters
| shape | The normal shape of the RemoteTextButton. |
Return
a RemoteTextButtonShapes with the given static shape
animatedShapes
@Composable
public fun animatedShapes(
shape: RemoteCornerBasedShape = this.shape,
pressedShape: RemoteCornerBasedShape = this.pressedShape,
): RemoteTextButtonShapes
Returns a RemoteTextButtonShapes with an animation between two RemoteCornerBasedShapes when pressed.
The press animation requires both shapes to be RemoteRoundedCornerShapes. It is driven by touch events on the player, and is not shown by players that don't dispatch them.
Example of a text button animated when pressed:
Parameters
| shape | The normal shape of the RemoteTextButton. |
| pressedShape | The pressed shape of the RemoteTextButton. |
Return
a RemoteTextButtonShapes with the configured resting and pressed shapes
textButtonColors
@Composable
public fun textButtonColors(): RemoteTextButtonColors
Returns a RemoteTextButtonColors for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.
Return
a RemoteTextButtonColors with the default colors for a RemoteTextButton
textButtonColors
@Composable
public fun textButtonColors(
containerColor: RemoteColor? = null,
contentColor: RemoteColor? = null,
disabledContainerColor: RemoteColor? = null,
disabledContentColor: RemoteColor? = null,
): RemoteTextButtonColors
Returns a RemoteTextButtonColors for a text button - by default, a transparent background with contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.
Parameters
| containerColor | The background color of this text button when enabled, or null to use the theme default. |
| contentColor | The content color of this text button when enabled, or null to use the theme default. |
| disabledContainerColor | The background color of this text button when not enabled, or null to use the theme default. |
| disabledContentColor | The content color of this text button when not enabled, or null to use the theme default. |
Return
a RemoteTextButtonColors with the configured colors for a RemoteTextButton
filledTonalTextButtonColors
@Composable
public fun filledTonalTextButtonColors(): RemoteTextButtonColors
Returns a RemoteTextButtonColors for a filled tonal RemoteTextButton - by default, a muted colored background with a contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.
Example of a RemoteTextButton with filledTonalTextButtonColors:
filledTonalTextButtonColors
@Composable
public fun filledTonalTextButtonColors(
containerColor: RemoteColor? = null,
contentColor: RemoteColor? = null,
disabledContainerColor: RemoteColor? = null,
disabledContentColor: RemoteColor? = null,
): RemoteTextButtonColors
Returns a RemoteTextButtonColors for a filled tonal RemoteTextButton - by default, a muted colored background with a contrasting content color. If the button is disabled then the colors default to RemoteColorScheme.onSurface with suitable alpha values applied.
Example of a RemoteTextButton with filledTonalTextButtonColors:
Parameters
| containerColor | the background color of this text button when enabled, or null to use the default (RemoteColorScheme.surfaceContainer). |
| contentColor | the content color of this text button when enabled, or null to use the default (RemoteColorScheme.onSurface). |
| disabledContainerColor | the background color of this text button when not enabled, or null to use the default (RemoteColorScheme.onSurface with 12% opacity). |
| disabledContentColor | the content color of this text button when not enabled, or null to use the default (RemoteColorScheme.onSurface with 38% opacity). |