---
title: "IconMarkerDefaults"
description: "Contains default values used by [IconMarker]."
type: "object"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Android

```kotlin
public object IconMarkerDefaults
```

Contains default values used by [IconMarker](/jetpack-compose/androidx.xr.glimmer/glimmer/components/IconMarker/api).

## Functions

### contentColor

> Source set: Android

```kotlin
@Composable
    public fun contentColor(color: Color = GlimmerTheme.colors.surface): Color
```

Default content color for [IconMarker](/jetpack-compose/androidx.xr.glimmer/glimmer/components/IconMarker/api). It defines the color of icon in [Icon](/jetpack-compose/androidx.xr.glimmer/glimmer/components/Icon/api).

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](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color) of the surface |

#### Return

the content [Color](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Color), adjusted to improve content contrast

### contentPadding

> Source set: Android

```kotlin
@Composable
    public fun contentPadding(size: IconMarkerSize): PaddingValues
```

Resolves padding values between marker and surface around it based on [IconMarkerSize](/jetpack-compose/androidx.xr.glimmer/glimmer/classes/IconMarkerSize/api).

### DotIcon

> Source set: Android

```kotlin
@Composable
    public fun DotIcon(modifier: Modifier = Modifier)
```

Default marker icon for [IconMarker](/jetpack-compose/androidx.xr.glimmer/glimmer/components/IconMarker/api), rendering a circle marker. To provide content
description use [IconMarker](/jetpack-compose/androidx.xr.glimmer/glimmer/components/IconMarker/api) API instead.
