Class

ColorProviders

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

Source set: Android
public sealed class ColorProviders

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

Secondary Constructors

protected constructor(
    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,
) {
    this.primary = primary
    this.onPrimary = onPrimary
    this.primaryContainer = primaryContainer
    this.onPrimaryContainer = onPrimaryContainer
    this.secondary = secondary
    this.onSecondary = onSecondary
    this.secondaryContainer = secondaryContainer
    this.onSecondaryContainer = onSecondaryContainer
    this.tertiary = tertiary
    this.onTertiary = onTertiary
    this.tertiaryContainer = tertiaryContainer
    this.onTertiaryContainer = onTertiaryContainer
    this.error = error
    this.errorContainer = errorContainer
    this.onError = onError
    this.onErrorContainer = onErrorContainer
    this.background = background
    this.onBackground = onBackground
    this.surface = surface
    this.onSurface = onSurface
    this.surfaceVariant = surfaceVariant
    this.onSurfaceVariant = onSurfaceVariant
    this.outline = outline
    this.inverseOnSurface = inverseOnSurface
    this.inverseSurface = inverseSurface
    this.inversePrimary = inversePrimary
    this.widgetBackground = widgetBackground
}
protected constructor(
    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.primary = primary
    this.onPrimary = onPrimary
    this.primaryContainer = primaryContainer
    this.onPrimaryContainer = onPrimaryContainer
    this.secondary = secondary
    this.onSecondary = onSecondary
    this.secondaryContainer = secondaryContainer
    this.onSecondaryContainer = onSecondaryContainer
    this.tertiary = tertiary
    this.onTertiary = onTertiary
    this.tertiaryContainer = tertiaryContainer
    this.onTertiaryContainer = onTertiaryContainer
    this.error = error
    this.errorContainer = errorContainer
    this.onError = onError
    this.onErrorContainer = onErrorContainer
    this.background = background
    this.onBackground = onBackground
    this.surface = surface
    this.onSurface = onSurface
    this.surfaceVariant = surfaceVariant
    this.onSurfaceVariant = onSurfaceVariant
    this.outline = outline
    this.inverseOnSurface = inverseOnSurface
    this.inverseSurface = inverseSurface
    this.inversePrimary = inversePrimary
    this.widgetBackground = ColorProvider(Color.Unspecified)
}

Properties

primary

Source set: Android
public val primary: ColorProvider

onPrimary

Source set: Android
public val onPrimary: ColorProvider

primaryContainer

Source set: Android
public val primaryContainer: ColorProvider

onPrimaryContainer

Source set: Android
public val onPrimaryContainer: ColorProvider

secondary

Source set: Android
public val secondary: ColorProvider

onSecondary

Source set: Android
public val onSecondary: ColorProvider

secondaryContainer

Source set: Android
public val secondaryContainer: ColorProvider

onSecondaryContainer

Source set: Android
public val onSecondaryContainer: ColorProvider

tertiary

Source set: Android
public val tertiary: ColorProvider

onTertiary

Source set: Android
public val onTertiary: ColorProvider

tertiaryContainer

Source set: Android
public val tertiaryContainer: ColorProvider

onTertiaryContainer

Source set: Android
public val onTertiaryContainer: ColorProvider

error

Source set: Android
public val error: ColorProvider

errorContainer

Source set: Android
public val errorContainer: ColorProvider

onError

Source set: Android
public val onError: ColorProvider

onErrorContainer

Source set: Android
public val onErrorContainer: ColorProvider

background

Source set: Android
public val background: ColorProvider

onBackground

Source set: Android
public val onBackground: ColorProvider

surface

Source set: Android
public val surface: ColorProvider

onSurface

Source set: Android
public val onSurface: ColorProvider

surfaceVariant

Source set: Android
public val surfaceVariant: ColorProvider

onSurfaceVariant

Source set: Android
public val onSurfaceVariant: ColorProvider

outline

Source set: Android
public val outline: ColorProvider

inverseOnSurface

Source set: Android
public val inverseOnSurface: ColorProvider

inverseSurface

Source set: Android
public val inverseSurface: ColorProvider

inversePrimary

Source set: Android
public val inversePrimary: ColorProvider

widgetBackground

Source set: Android
public val widgetBackground: ColorProvider

Last updated: