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 DepthLevels

Retrieves the current DepthLevels 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.

getDepthLevels

@Composable
public static final @NonNull DepthLevels getDepthLevels()

Retrieves the current DepthLevels 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-alpha01
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.