SurfaceDefaults

object SurfaceDefaults


Contains default values used by surface.

Summary

Public functions

Color
@Composable
color(baseColor: Color)

Returns the background Color for a surface derived from the provided baseColor.

Color

Returns the focused background Color for a surface derived from the provided baseColor.

Public functions

color

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

Returns the background Color for a surface derived from the provided baseColor.

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

Parameters
baseColor: 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-alpha19
@Composable
fun focusedColor(baseColor: Color = GlimmerTheme.colors.surface): Color

Returns the focused background Color for a surface derived from the provided baseColor.

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

Parameters
baseColor: Color = GlimmerTheme.colors.surface

the base Color of the surface

Returns
Color

the focused surface background Color, adjusted to improve content contrast