Object

IconMarkerDefaults

Contains default values used by IconMarker.

Source set: Android
public object IconMarkerDefaults

Contains default values used by IconMarker.

Functions

contentColor

Source set: Android
@Composable
    public 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 the base background Color of the surface

Return

the content Color, adjusted to improve content contrast

contentPadding

Source set: Android
@Composable
    public fun contentPadding(size: IconMarkerSize): PaddingValues

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

DotIcon

Source set: Android
@Composable
    public fun DotIcon(modifier: Modifier = Modifier)

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

Content updated: