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> |
|
Colors |
Retrieves the current |
ComponentSpacingValues |
Retrieves the current |
DepthEffectLevels |
Retrieves the current |
IconSizes |
Retrieves the current |
Shapes |
Retrieves the current |
Typography |
Retrieves the current |
Public constructors |
|---|
GlimmerTheme( |
Public properties |
|
|---|---|
Colors |
|
ComponentSpacingValues |
|
DepthEffectLevels |
|
IconSizes |
|
Shapes |
|
Typography |
|
Public companion properties
LocalGlimmerTheme
val LocalGlimmerTheme: CompositionLocal<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 colors: Colors
Retrieves the current Colors at the call site's position in the hierarchy.
componentSpacingValues
val componentSpacingValues: ComponentSpacingValues
Retrieves the current ComponentSpacingValues at the call site's position in the hierarchy.
depthEffectLevels
val depthEffectLevels: DepthEffectLevels
Retrieves the current DepthEffectLevels at the call site's position in the hierarchy.
iconSizes
val iconSizes: IconSizes
Retrieves the current IconSizes at the call site's position in the hierarchy.
shapes
val shapes: Shapes
Retrieves the current Shapes at the call site's position in the hierarchy.
typography
val typography: Typography
Retrieves the current Typography at the call site's position in the hierarchy.
Public constructors
GlimmerTheme
GlimmerTheme(
colors: Colors = Colors(),
typography: Typography = Typography(),
componentSpacingValues: ComponentSpacingValues = ComponentSpacingValues()
)
Public properties
componentSpacingValues
val componentSpacingValues: ComponentSpacingValues
ComponentSpacingValues used by Jetpack Compose Glimmer components
depthEffectLevels
val depthEffectLevels: DepthEffectLevels
DepthEffectLevels used by Jetpack Compose Glimmer components
typography
val typography: Typography
Typography used by Jetpack Compose Glimmer components. It is recommended to use createGoogleSansFlexTypography() from androidx.xr.glimmer:glimmer-google-fonts to create this.