SurfaceDefaults

object SurfaceDefaults


Contains default values used by surface.

Summary

Public functions

Color

Derives a color suitable for use as a focused background color from the provided seedColor.

Public functions

calculateFocusedColor

Added in 1.0.0-alpha23
fun calculateFocusedColor(seedColor: Color): Color

Derives a color suitable for use as a focused background color from the provided seedColor.

Parameters
seedColor: Color

the base Color from which the focused surface color will be derived

Returns
Color

a color to be used as the focused surface background Color, adjusted to improve content contrast