Skip to main content

Module theme

Module theme 

Source
Expand description

Liquid theme: semantic colors, the iOS-style type ramp, and glass defaults, provided to the subtree through composition locals — the analogue of MaterialTheme.

Structs§

LiquidColors
Semantic color palette mirroring the iOS system palette.
LiquidSegmentedStyle
How a crate::LiquidSegmentedControl looks. Self::system is the system control; an app gives its controls another look with ProvideLiquidSegmentedStyle.
LiquidThemeSpec
Theme configuration passed to LiquidTheme.
LiquidTypography

Enums§

SchemeMode
Whether the theme follows the OS appearance or is pinned.

Functions§

LiquidTheme
Provides the Liquid design system (colors, typography) to content.
ProvideLiquidSegmentedStyle
Gives the segmented controls in content the look of style.
liquid_colors
The active semantic palette (light defaults outside a LiquidTheme).
liquid_glass_tint_amount
The active navigation surface tint amount, defaulting to 25 percent.
liquid_segmented_style
The look of segmented controls here: the one provided by ProvideLiquidSegmentedStyle, or the system one.
liquid_typography
The active type ramp.