MaterialKolors

class MaterialKolors(scheme: DynamicScheme, isAmoled: Boolean = false, isExtendedFidelity: Boolean = false)

A class that provides various color functions based on the given dynamic scheme.

Parameters

isExtendedFidelity

A flag indicating whether extended fidelity is enabled.

Constructors

Link copied to clipboard
constructor(scheme: DynamicScheme, isAmoled: Boolean = false, isExtendedFidelity: Boolean = false)

Functions

Link copied to clipboard

Returns the background color.

Link copied to clipboard

Returns the control activated color.

Link copied to clipboard

Returns the control highlight color.

Link copied to clipboard

Returns the control normal color.

Link copied to clipboard
fun error(): Color

Returns the error color.

Link copied to clipboard

Returns the error container color.

Link copied to clipboard

Returns the error palette key color.

Link copied to clipboard

Returns the highest surface color based on the given scheme.

Link copied to clipboard

Returns the inverse on-surface color.

Link copied to clipboard

Returns the inverse primary color.

Link copied to clipboard

Returns the inverse surface color.

Link copied to clipboard

Returns the neutral palette key color.

Link copied to clipboard

Returns the neutral variant palette key color.

Link copied to clipboard

Returns the on-background color.

Link copied to clipboard
fun onError(): Color

Returns the on-error color.

Link copied to clipboard

Returns the on-error container color.

Link copied to clipboard

Returns the on-primary color.

Link copied to clipboard

Returns the on-primary container color.

Link copied to clipboard

Returns the on-primary fixed color.

Link copied to clipboard

Returns the on-primary fixed variant color.

Link copied to clipboard

Returns the on-secondary color.

Link copied to clipboard

Returns the on-secondary container color.

Link copied to clipboard

Returns the on-secondary fixed color.

Link copied to clipboard

Returns the on-secondary fixed variant color.

Link copied to clipboard

Returns the on-surface color.

Link copied to clipboard

Returns the on-surface variant color.

Link copied to clipboard

Returns the on-tertiary color.

Link copied to clipboard

Returns the on-tertiary container color.

Link copied to clipboard

Returns the on-tertiary fixed color.

Link copied to clipboard

Returns the on-tertiary fixed variant color.

Link copied to clipboard
fun outline(): Color

Returns the outline color.

Link copied to clipboard

Returns the outline variant color.

Link copied to clipboard
fun primary(): Color

Returns the primary color.

Link copied to clipboard

Returns the primary container color.

Link copied to clipboard

Returns the primary fixed color.

Link copied to clipboard

Returns the primary fixed dim color.

Link copied to clipboard

Returns the primary palette key color.

Link copied to clipboard
fun scrim(): Color

Returns the scrim color.

Link copied to clipboard

Returns the secondary color.

Link copied to clipboard

Returns the secondary container color.

Link copied to clipboard

Returns the secondary fixed color.

Link copied to clipboard

Returns the secondary fixed dim color.

Link copied to clipboard

Returns the secondary palette key color.

Link copied to clipboard
fun shadow(): Color

Returns the shadow color.

Link copied to clipboard
fun surface(): Color

Returns the surface color.

Link copied to clipboard

Returns the surface bright color.

Link copied to clipboard

Returns the surface container color.

Link copied to clipboard

Returns the surface container high color.

Link copied to clipboard

Returns the surface container highest color.

Link copied to clipboard

Returns the surface container low color.

Link copied to clipboard

Returns the surface container lowest color.

Link copied to clipboard

Returns the surface dim color.

Link copied to clipboard

Returns the surface tint color.

Link copied to clipboard

Returns the surface variant color.

Link copied to clipboard

Returns the tertiary color.

Link copied to clipboard

Returns the tertiary container color.

Link copied to clipboard

Returns the tertiary fixed color.

Link copied to clipboard

Returns the tertiary fixed dim color.

Link copied to clipboard

Returns the tertiary palette key color.

Link copied to clipboard

Returns the text hint inverse color.

Link copied to clipboard

Returns the text primary inverse color.

Link copied to clipboard

Returns the text primary inverse disable only color.

Link copied to clipboard

Returns the text secondary and tertiary inverse color.

Link copied to clipboard

Returns the text secondary and tertiary inverse disabled color.