RemoteTextButtonDefaults

object RemoteTextButtonDefaults


Contains the default values used by RemoteTextButton.

Summary

Public functions

RemoteTextButtonColors

Returns a TextButtonColors for a text button - by default, a transparent background with contrasting content color.

RemoteTextButtonColors
@Composable
textButtonColors(
    containerColor: RemoteColor,
    contentColor: RemoteColor?,
    disabledContainerColor: RemoteColor,
    disabledContentColor: RemoteColor?
)

Returns a RemoteTextButtonColors for a text button - by default, a transparent background with contrasting content color.

Public properties

RemoteDp

The default size applied for buttons.

RemoteDp

The recommended size for a large button.

RemoteDp

The recommended size for a small button.

RemoteTextStyle

The default text style applied for buttons.

RemoteTextStyle

The recommended text style for a large button.

RemoteRoundedCornerShape

Recommended RemoteShape for RemoteTextButton.

RemoteTextStyle

The recommended text style for a small button.

Public functions

textButtonColors

Added in 1.0.0-alpha01
@Composable
fun textButtonColors(): RemoteTextButtonColors

Returns a TextButtonColors 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.

textButtonColors

Added in 1.0.0-alpha01
@Composable
fun textButtonColors(
    containerColor: RemoteColor = RemoteColor(Color.Transparent),
    contentColor: RemoteColor? = null,
    disabledContainerColor: RemoteColor = RemoteColor(Color.Transparent),
    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: RemoteColor = RemoteColor(Color.Transparent)

the background color of this text button when enabled

contentColor: RemoteColor? = null

the content color of this text button when enabled

disabledContainerColor: RemoteColor = RemoteColor(Color.Transparent)

the background color of this text button when not enabled

disabledContentColor: RemoteColor? = null

the content color of this text button when not enabled

Public properties

DefaultButtonSize

Added in 1.0.0-alpha01
val DefaultButtonSizeRemoteDp

The default size applied for buttons.

LargeButtonSize

Added in 1.0.0-alpha01
val LargeButtonSizeRemoteDp

The recommended size for a large button.

SmallButtonSize

Added in 1.0.0-alpha01
val SmallButtonSizeRemoteDp

The recommended size for a small button.

defaultButtonTextStyle

val defaultButtonTextStyleRemoteTextStyle

The default text style applied for buttons.

largeButtonTextStyle

val largeButtonTextStyleRemoteTextStyle

The recommended text style for a large button.

smallButtonTextStyle

val smallButtonTextStyleRemoteTextStyle

The recommended text style for a small button.