Class

GlimmerTheme

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

Source set: Android
public class GlimmerTheme(
    public val colors: Colors = Colors(),
    public val typography: Typography = Typography(),
    public val componentSpacingValues: ComponentSpacingValues = ComponentSpacingValues(),
)

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

Components use properties provided here when retrieving default values.

Properties

shapes

Source set: Android
public val shapes: Shapes = _shapes

depthEffectLevels

Source set: Android
public val depthEffectLevels: DepthEffectLevels = _depthEffectLevels

iconSizes

Source set: Android
public val iconSizes: IconSizes = _iconSizes

Members

Companion

Source set: Android
public companion object

Properties

colors

Source set: Android
public val colors: Colors

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

typography

Source set: Android
public val typography: Typography

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

componentSpacingValues

Source set: Android
public val componentSpacingValues: ComponentSpacingValues

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

shapes

Source set: Android
public val shapes: Shapes

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

depthEffectLevels

Source set: Android
public val depthEffectLevels: DepthEffectLevels

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

iconSizes

Source set: Android
public val iconSizes: IconSizes

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

LocalGlimmerTheme

Source set: Android
public 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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: