Source set: Android
public object SurfaceDefaults
Contains default values used by surface.
Functions
color
Source set: Android
@Composable
public 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 | the base Color of the surface |
Return
the surface background Color, adjusted to improve content contrast
focusedColor
Source set: Android
@Composable
public 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 | the base Color of the surface |
Return
the focused surface background Color, adjusted to improve content contrast