GlimmerTheme.Companion
public static class GlimmerTheme.Companion
Summary
Public methods |
|
|---|---|
static final @NonNull Colors |
Retrieves the current |
static final @NonNull DepthLevels |
Retrieves the current |
static final @NonNull IconSizes |
Retrieves the current |
static final @NonNull CompositionLocal<@NonNull GlimmerTheme> |
|
static final @NonNull Shapes |
Retrieves the current |
static final @NonNull Typography |
Retrieves the current |
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
public static final @NonNull CompositionLocal<@NonNull GlimmerTheme> getLocalGlimmerTheme()
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.