public object RemoteCardDefaults
Contains the default values used by RemoteCard
Properties
OutlinedBorderSize
public val OutlinedBorderSize: RemoteDp
The default size of the border for RemoteOutlinedCard
ContentPadding
public val ContentPadding: RemotePaddingValues
The default content padding used by RemoteCard
AppImageSize
public val AppImageSize: RemoteDp
The default size of the app icon/image when used inside a RemoteAppCard.
shape
public val shape: RemoteShape
The default shape of RemoteCard, which determines its corner radius.
Height
public val Height: RemoteDp
The default height of RemoteCard, RemoteAppCard and RemoteTitleCard. The card will increase its height to accommodate the contents, if necessary.
Width
public val Width: RemoteDp
Functions
cardColors
@Composable
@RemoteComposable
public fun cardColors(): RemoteCardColors
Creates a RemoteCardColors that represents the default container and content colors used in a RemoteCard, RemoteAppCard or RemoteTitleCard.
cardColors
@Composable
@RemoteComposable
public fun cardColors(
containerColor: RemoteColor? = null,
contentColor: RemoteColor? = null,
appNameColor: RemoteColor? = null,
timeColor: RemoteColor? = null,
titleColor: RemoteColor? = null,
subtitleColor: RemoteColor? = null,
): RemoteCardColors
Creates a RemoteCardColors that represents the default container and content colors used in a RemoteCard, RemoteAppCard or RemoteTitleCard.
Parameters
| containerColor | the container color of this RemoteCard. |
| contentColor | the content color of this RemoteCard. |
| appNameColor | the color used for appName, only applies to RemoteAppCard. |
| timeColor | the color used for time, applies to RemoteAppCard and RemoteTitleCard. |
| titleColor | the color used for title, applies to RemoteAppCard and RemoteTitleCard. |
| subtitleColor | the color used for subtitle, applies to RemoteTitleCard. |
outlinedCardColors
@Composable
@RemoteComposable
public fun outlinedCardColors(): RemoteCardColors
Creates a RemoteCardColors that represents the default container and content colors used in an RemoteOutlinedCard, outlined RemoteAppCard or RemoteTitleCard.
outlinedCardColors
@Composable
@RemoteComposable
public fun outlinedCardColors(
contentColor: RemoteColor? = null,
appNameColor: RemoteColor? = null,
timeColor: RemoteColor? = null,
titleColor: RemoteColor? = null,
subtitleColor: RemoteColor? = null,
): RemoteCardColors
Creates a RemoteCardColors that represents the default container and content colors used in an RemoteOutlinedCard, outlined RemoteAppCard or RemoteTitleCard.
Parameters
| contentColor | the content color of this RemoteOutlinedCard. |
| appNameColor | the color used for appName, only applies to RemoteAppCard. |
| timeColor | the color used for time, applies to RemoteAppCard and RemoteTitleCard. |
| titleColor | the color used for title, applies to RemoteAppCard and RemoteTitleCard. |
| subtitleColor | the color used for subtitle, applies to RemoteTitleCard. |