MaterialKolors

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

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

Constructors

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

Functions

Link copied to clipboard
fun background(): Color

Returns the background color.

Link copied to clipboard
fun controlActivated(): Color

Returns the control activated color.

Link copied to clipboard
fun controlHighlight(): Color

Returns the control highlight color.

Link copied to clipboard
fun controlNormal(): Color

Returns the control normal color.

Link copied to clipboard
fun error(): Color

Returns the error color.

Link copied to clipboard
fun errorContainer(): Color

Returns the error container color.

Link copied to clipboard

Returns the error palette key color.

Link copied to clipboard
fun highestSurface(scheme: DynamicScheme): Color

Returns the highest surface color based on the given scheme.

Link copied to clipboard
fun inverseOnSurface(): Color

Returns the inverse on-surface color.

Link copied to clipboard
fun inversePrimary(): Color

Returns the inverse primary color.

Link copied to clipboard
fun inverseSurface(): Color

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
fun onBackground(): Color

Returns the on-background color.

Link copied to clipboard
fun onError(): Color

Returns the on-error color.

Link copied to clipboard
fun onErrorContainer(): Color

Returns the on-error container color.

Link copied to clipboard
fun onPrimary(): Color

Returns the on-primary color.

Link copied to clipboard
fun onPrimaryContainer(): Color

Returns the on-primary container color.

Link copied to clipboard
fun onPrimaryFixed(): Color

Returns the on-primary fixed color.

Link copied to clipboard

Returns the on-primary fixed variant color.

Link copied to clipboard
fun onSecondary(): Color

Returns the on-secondary color.

Link copied to clipboard

Returns the on-secondary container color.

Link copied to clipboard
fun onSecondaryFixed(): Color

Returns the on-secondary fixed color.

Link copied to clipboard

Returns the on-secondary fixed variant color.

Link copied to clipboard
fun onSurface(): Color

Returns the on-surface color.

Link copied to clipboard
fun onSurfaceVariant(): Color

Returns the on-surface variant color.

Link copied to clipboard
fun onTertiary(): Color

Returns the on-tertiary color.

Link copied to clipboard
fun onTertiaryContainer(): Color

Returns the on-tertiary container color.

Link copied to clipboard
fun onTertiaryFixed(): Color

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
fun outlineVariant(): Color

Returns the outline variant color.

Link copied to clipboard
fun primary(): Color

Returns the primary color.

Link copied to clipboard
fun primaryContainer(): Color

Returns the primary container color.

Link copied to clipboard
fun primaryFixed(): Color

Returns the primary fixed color.

Link copied to clipboard
fun primaryFixedDim(): Color

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
fun secondary(): Color

Returns the secondary color.

Link copied to clipboard
fun secondaryContainer(): Color

Returns the secondary container color.

Link copied to clipboard
fun secondaryFixed(): Color

Returns the secondary fixed color.

Link copied to clipboard
fun secondaryFixedDim(): Color

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
fun surfaceBright(): Color

Returns the surface bright color.

Link copied to clipboard
fun surfaceContainer(): Color

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
fun surfaceContainerLow(): Color

Returns the surface container low color.

Link copied to clipboard

Returns the surface container lowest color.

Link copied to clipboard
fun surfaceDim(): Color

Returns the surface dim color.

Link copied to clipboard
fun surfaceTint(): Color

Returns the surface tint color.

Link copied to clipboard
fun surfaceVariant(): Color

Returns the surface variant color.

Link copied to clipboard
fun tertiary(): Color

Returns the tertiary color.

Link copied to clipboard
fun tertiaryContainer(): Color

Returns the tertiary container color.

Link copied to clipboard
fun tertiaryFixed(): Color

Returns the tertiary fixed color.

Link copied to clipboard
fun tertiaryFixedDim(): Color

Returns the tertiary fixed dim color.

Link copied to clipboard

Returns the tertiary palette key color.

Link copied to clipboard
fun textHintInverse(): Color

Returns the text hint inverse color.

Link copied to clipboard
fun textPrimaryInverse(): Color

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.