ColorProviders

sealed class ColorProviders


Holds a set of Glance specific ColorProvider that can be used to represent a Material 3 color scheme.

Summary

Protected constructors

ColorProviders(
    primary: ColorProvider,
    onPrimary: ColorProvider,
    primaryContainer: ColorProvider,
    onPrimaryContainer: ColorProvider,
    secondary: ColorProvider,
    onSecondary: ColorProvider,
    secondaryContainer: ColorProvider,
    onSecondaryContainer: ColorProvider,
    tertiary: ColorProvider,
    onTertiary: ColorProvider,
    tertiaryContainer: ColorProvider,
    onTertiaryContainer: ColorProvider,
    error: ColorProvider,
    errorContainer: ColorProvider,
    onError: ColorProvider,
    onErrorContainer: ColorProvider,
    background: ColorProvider,
    onBackground: ColorProvider,
    surface: ColorProvider,
    onSurface: ColorProvider,
    surfaceVariant: ColorProvider,
    onSurfaceVariant: ColorProvider,
    outline: ColorProvider,
    inverseOnSurface: ColorProvider,
    inverseSurface: ColorProvider,
    inversePrimary: ColorProvider
)

This function is deprecated. Hidden

ColorProviders(
    primary: ColorProvider,
    onPrimary: ColorProvider,
    primaryContainer: ColorProvider,
    onPrimaryContainer: ColorProvider,
    secondary: ColorProvider,
    onSecondary: ColorProvider,
    secondaryContainer: ColorProvider,
    onSecondaryContainer: ColorProvider,
    tertiary: ColorProvider,
    onTertiary: ColorProvider,
    tertiaryContainer: ColorProvider,
    onTertiaryContainer: ColorProvider,
    error: ColorProvider,
    errorContainer: ColorProvider,
    onError: ColorProvider,
    onErrorContainer: ColorProvider,
    background: ColorProvider,
    onBackground: ColorProvider,
    surface: ColorProvider,
    onSurface: ColorProvider,
    surfaceVariant: ColorProvider,
    onSurfaceVariant: ColorProvider,
    outline: ColorProvider,
    inverseOnSurface: ColorProvider,
    inverseSurface: ColorProvider,
    inversePrimary: ColorProvider,
    widgetBackground: ColorProvider
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Protected constructors

ColorProviders

protected ColorProviders(
    primary: ColorProvider,
    onPrimary: ColorProvider,
    primaryContainer: ColorProvider,
    onPrimaryContainer: ColorProvider,
    secondary: ColorProvider,
    onSecondary: ColorProvider,
    secondaryContainer: ColorProvider,
    onSecondaryContainer: ColorProvider,
    tertiary: ColorProvider,
    onTertiary: ColorProvider,
    tertiaryContainer: ColorProvider,
    onTertiaryContainer: ColorProvider,
    error: ColorProvider,
    errorContainer: ColorProvider,
    onError: ColorProvider,
    onErrorContainer: ColorProvider,
    background: ColorProvider,
    onBackground: ColorProvider,
    surface: ColorProvider,
    onSurface: ColorProvider,
    surfaceVariant: ColorProvider,
    onSurfaceVariant: ColorProvider,
    outline: ColorProvider,
    inverseOnSurface: ColorProvider,
    inverseSurface: ColorProvider,
    inversePrimary: ColorProvider
)

ColorProviders

protected ColorProviders(
    primary: ColorProvider,
    onPrimary: ColorProvider,
    primaryContainer: ColorProvider,
    onPrimaryContainer: ColorProvider,
    secondary: ColorProvider,
    onSecondary: ColorProvider,
    secondaryContainer: ColorProvider,
    onSecondaryContainer: ColorProvider,
    tertiary: ColorProvider,
    onTertiary: ColorProvider,
    tertiaryContainer: ColorProvider,
    onTertiaryContainer: ColorProvider,
    error: ColorProvider,
    errorContainer: ColorProvider,
    onError: ColorProvider,
    onErrorContainer: ColorProvider,
    background: ColorProvider,
    onBackground: ColorProvider,
    surface: ColorProvider,
    onSurface: ColorProvider,
    surfaceVariant: ColorProvider,
    onSurfaceVariant: ColorProvider,
    outline: ColorProvider,
    inverseOnSurface: ColorProvider,
    inverseSurface: ColorProvider,
    inversePrimary: ColorProvider,
    widgetBackground: ColorProvider
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

background

Added in 1.0.0
val backgroundColorProvider

error

Added in 1.0.0
val errorColorProvider

errorContainer

Added in 1.0.0
val errorContainerColorProvider

inverseOnSurface

Added in 1.0.0
val inverseOnSurfaceColorProvider

inversePrimary

Added in 1.0.0
val inversePrimaryColorProvider

inverseSurface

Added in 1.0.0
val inverseSurfaceColorProvider

onBackground

Added in 1.0.0
val onBackgroundColorProvider

onError

Added in 1.0.0
val onErrorColorProvider

onErrorContainer

Added in 1.0.0
val onErrorContainerColorProvider

onPrimary

Added in 1.0.0
val onPrimaryColorProvider

onPrimaryContainer

Added in 1.0.0
val onPrimaryContainerColorProvider

onSecondary

Added in 1.0.0
val onSecondaryColorProvider

onSecondaryContainer

Added in 1.0.0
val onSecondaryContainerColorProvider

onSurface

Added in 1.0.0
val onSurfaceColorProvider

onSurfaceVariant

Added in 1.0.0
val onSurfaceVariantColorProvider

onTertiary

Added in 1.0.0
val onTertiaryColorProvider

onTertiaryContainer

Added in 1.0.0
val onTertiaryContainerColorProvider

outline

Added in 1.0.0
val outlineColorProvider

primary

Added in 1.0.0
val primaryColorProvider

primaryContainer

Added in 1.0.0
val primaryContainerColorProvider

secondary

Added in 1.0.0
val secondaryColorProvider

secondaryContainer

Added in 1.0.0
val secondaryContainerColorProvider

surface

Added in 1.0.0
val surfaceColorProvider

surfaceVariant

Added in 1.0.0
val surfaceVariantColorProvider

tertiary

Added in 1.0.0
val tertiaryColorProvider

tertiaryContainer

Added in 1.0.0
val tertiaryContainerColorProvider

widgetBackground

Added in 1.1.1
val widgetBackgroundColorProvider