SurfaceDefaults

object SurfaceDefaults


Contains default values used by surface.

Summary

Public functions

Color

Calculates the background Color for a surface derived from the provided color.

Color

Calculates the focused background Color for a surface derived from the provided color.

Public functions

color

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

Calculates the background Color for a surface derived from the provided color.

Adjusts the provided color so that it is suitable for use as a surface background.

Parameters
color: Color = GlimmerTheme.colors.surface

the base Color of the surface

Returns
Color

the surface background Color, adjusted to improve content contrast

focusedColor

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

Calculates the focused background Color for a surface derived from the provided color.

Adjusts the provided color so that it is suitable for use as a focused surface background.

Parameters
color: Color = GlimmerTheme.colors.surface

the base Color of the surface

Returns
Color

the focused surface background Color, adjusted to improve content contrast