GlimmerTheme.Companion


public static class GlimmerTheme.Companion


Summary

Public methods

static final @NonNull Colors

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

static final @NonNull ComponentSpacingValues

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

static final @NonNull DepthEffectLevels

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

static final @NonNull IconSizes

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

static final @NonNull CompositionLocal<@NonNull GlimmerTheme>

CompositionLocal providing GlimmerTheme throughout the hierarchy.

static final @NonNull Shapes

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

static final @NonNull Typography

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

Public methods

getColors

@Composable
public static final @NonNull Colors getColors()

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

getComponentSpacingValues

@Composable
public static final @NonNull ComponentSpacingValues getComponentSpacingValues()

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

getDepthEffectLevels

@Composable
public static final @NonNull DepthEffectLevels getDepthEffectLevels()

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

getIconSizes

@Composable
public static final @NonNull IconSizes getIconSizes()

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

getLocalGlimmerTheme

Added in 1.0.0-alpha09
public static final @NonNull CompositionLocal<@NonNull GlimmerThemegetLocalGlimmerTheme()

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.

getShapes

@Composable
public static final @NonNull Shapes getShapes()

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

getTypography

@Composable
public static final @NonNull Typography getTypography()

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