SurfaceColors

class SurfaceColors(val main: Color, val subtle: Color, val subtleAlt: Color, val normal: Color, val normalAlt: Color, val strong: Color, val strongAlt: Color, val disabled: Color)

Surface colors suitable for various backgrounds and surfaces.

Constructors

Link copied to clipboard
constructor(main: Color, subtle: Color, subtleAlt: Color, normal: Color, normalAlt: Color, strong: Color, strongAlt: Color, disabled: Color)

Properties

Link copied to clipboard

Disabled surface color.

Link copied to clipboard
val main: Color

Primary main white color for backgrounds.

Link copied to clipboard

Normal gray color for UI control backgrounds.

Link copied to clipboard

Alt darker normal gray color.

Link copied to clipboard

Strong gray color.

Link copied to clipboard

Alt strong gray color.

Link copied to clipboard

Subtle gray color, secondary color for backgrounds.

Link copied to clipboard

Alt darker subtle gray color.

Functions

Link copied to clipboard
fun copy(main: Color = this.main, subtle: Color = this.subtle, subtleAlt: Color = this.subtleAlt, normal: Color = this.normal, normalAlt: Color = this.normalAlt, strong: Color = this.strong, strongAlt: Color = this.strongAlt, disabled: Color = this.disabled): SurfaceColors