IconMarkerDefaults

object IconMarkerDefaults


Contains default values used by IconMarker.

Summary

Public functions

Unit

Default marker icon for IconMarker, rendering a circle marker.

Color

Default content color for IconMarker.

PaddingValues

Resolves padding values between marker and surface around it based on IconMarkerSize.

Public functions

DotIcon

Added in 1.0.0-alpha20
@Composable
fun DotIcon(modifier: Modifier = Modifier): Unit

Default marker icon for IconMarker, rendering a circle marker. To provide content description use IconMarker API instead.

contentColor

Added in 1.0.0-alpha20
@Composable
fun contentColor(color: Color = GlimmerTheme.colors.surface): Color

Default content color for IconMarker. It defines the color of icon in Icon.

Calculates the preferred content color for color. This will return either Color.White or Color.Black, depending on the luminance of the provided color.

Parameters
color: Color = GlimmerTheme.colors.surface

the base background Color of the surface

Returns
Color

the content Color, adjusted to improve content contrast

contentPadding

Added in 1.0.0-alpha20
@Composable
fun contentPadding(size: IconMarkerSize): PaddingValues

Resolves padding values between marker and surface around it based on IconMarkerSize.