GlimmerTheme


class GlimmerTheme


Jetpack Compose Glimmer contains different theme subsystems to allow visual customization across an application.

Components use properties provided here when retrieving default values.

Summary

Public companion properties

CompositionLocal<GlimmerTheme>

CompositionLocal providing GlimmerTheme throughout the hierarchy.

Colors

Retrieves the current Colors at the call site's position in the hierarchy.

ComponentSpacingValues

Retrieves the current ComponentSpacingValues at the call site's position in the hierarchy.

DepthEffectLevels

Retrieves the current DepthEffectLevels at the call site's position in the hierarchy.

IconSizes

Retrieves the current IconSizes at the call site's position in the hierarchy.

Shapes

Retrieves the current Shapes at the call site's position in the hierarchy.

Typography

Retrieves the current Typography at the call site's position in the hierarchy.

Public constructors

GlimmerTheme(
    colors: Colors,
    typography: Typography,
    componentSpacingValues: ComponentSpacingValues
)

Public properties

Colors

Colors used by Jetpack Compose Glimmer components

ComponentSpacingValues

ComponentSpacingValues used by Jetpack Compose Glimmer components

DepthEffectLevels

DepthEffectLevels used by Jetpack Compose Glimmer components

IconSizes

IconSizes used by icons

Shapes

Shapes used by Jetpack Compose Glimmer components

Typography

Typography used by Jetpack Compose Glimmer components

Public companion properties

LocalGlimmerTheme

Added in 1.0.0-alpha09
val LocalGlimmerThemeCompositionLocal<GlimmerTheme>

CompositionLocal providing GlimmerTheme throughout the hierarchy. You can use properties in the companion object to access specific subsystems, for example colors. To provide a new value for this, use GlimmerTheme. This API is exposed to allow retrieving values from inside CompositionLocalConsumerModifierNode implementations - in most cases you should use colors and other properties directly.

colors

val colorsColors

Retrieves the current Colors at the call site's position in the hierarchy.

componentSpacingValues

val componentSpacingValuesComponentSpacingValues

Retrieves the current ComponentSpacingValues at the call site's position in the hierarchy.

depthEffectLevels

val depthEffectLevelsDepthEffectLevels

Retrieves the current DepthEffectLevels at the call site's position in the hierarchy.

iconSizes

val iconSizesIconSizes

Retrieves the current IconSizes at the call site's position in the hierarchy.

shapes

val shapesShapes

Retrieves the current Shapes at the call site's position in the hierarchy.

typography

val typographyTypography

Retrieves the current Typography at the call site's position in the hierarchy.

Public constructors

GlimmerTheme

Added in 1.0.0-alpha09
GlimmerTheme(
    colors: Colors = Colors(),
    typography: Typography = Typography(),
    componentSpacingValues: ComponentSpacingValues = ComponentSpacingValues()
)

Public properties

colors

Added in 1.0.0-alpha09
val colorsColors

Colors used by Jetpack Compose Glimmer components

componentSpacingValues

Added in 1.0.0-alpha09
val componentSpacingValuesComponentSpacingValues

ComponentSpacingValues used by Jetpack Compose Glimmer components

depthEffectLevels

Added in 1.0.0-alpha09
val depthEffectLevelsDepthEffectLevels

DepthEffectLevels used by Jetpack Compose Glimmer components

iconSizes

Added in 1.0.0-alpha09
val iconSizesIconSizes

IconSizes used by icons

shapes

Added in 1.0.0-alpha09
val shapesShapes

Shapes used by Jetpack Compose Glimmer components

typography

Added in 1.0.0-alpha09
val typographyTypography

Typography used by Jetpack Compose Glimmer components