Table of Contents

Struct MaterialColor

[Serializable]
public struct MaterialColor
Inherited Members
Extension Methods

Fields

bright

public Color bright

Field Value

Color

color

The base color

public Color color

Field Value

Color

container

Standout fill color against surface(background), for key components like FAB

public Color container

Field Value

Color

dim

public Color dim

Field Value

Color

onColor

Text and icons against base color

public Color onColor

Field Value

Color

onContainer

Text and icons against container

public Color onContainer

Field Value

Color

onVariant

public Color onVariant

Field Value

Color

role

public ColorRole role

Field Value

ColorRole

variant

public Color variant

Field Value

Color

Methods

Create(ColorRole)

public static MaterialColor Create(ColorRole role)

Parameters

role ColorRole

Returns

MaterialColor

GetColor(ColorRole, ColorType)

public static Color GetColor(ColorRole role, ColorType type)

Parameters

role ColorRole
type ColorType

Returns

Color

GetColor(ColorType)

public readonly Color GetColor(ColorType type)

Parameters

type ColorType

Returns

Color