Skip to main content

Module widgets

Module widgets 

Source
Expand description

The Liquid component set.

Structs§

GlassButtonSpec
Configuration for GlassButton / GlassIconButton.
GlassIconButtonGroupItem
One action in a GlassIconButtonGroup.
GlassIconButtonGroupSpec
Geometry and interaction material for GlassIconButtonGroup.
LiquidListRowSpec
Configuration for LiquidListRow.
LiquidMenuAbsorbedSource
A neighboring glass icon control whose volume and foreground are absorbed by an opening menu surface.
LiquidMenuGesture
Shared ownership channel between a menu trigger and its popup. The trigger keeps receiving the original pointer after the popup appears; the popup reads that live position and consumes its eventual release.
LiquidMenuItem
One menu entry.
LiquidMenuSpec
Layout parameters for a LiquidMenu.
LiquidNavBarSpec
Configuration for LiquidNavBar.
LiquidSearchFieldSpec
Configuration for LiquidSearchField.
LiquidTab
One tab: icon path data (24×24 viewBox), label, and icon treatment.
LiquidTabBarSpec
Layout parameters for a LiquidTabBar.

Enums§

GlassButtonStyle
Visual style of a GlassButton.
LiquidTabIconStyle
Visual treatment for a tab icon.

Functions§

GlassButton
A glass button. content composes the label (see GlassButton with Text, or an crate::icons::Icon + text row).
GlassButtonLabel
Convenience text label styled for the enclosing button.
GlassIconButton
A circular glass icon button (44dp target).
GlassIconButtonGroup
A row of circular actions whose pressed glass can join adjacent members. Each member keeps its own base material and foreground; one transparent, persistent interaction field supplies the shared refraction and neck.
GlassSurface
A container rendered on the Liquid Glass material: its backdrop is refracted/blurred behind content, clipped to glass.shape.
LiquidCard
An elevated surface with the grouped-inset card look.
LiquidChip
A selectable filter pill (the Library “All / Receipts” chips). Selected chips render on glass; unselected ones sit on the fill color.
LiquidListRow
One tappable row inside a LiquidCard / LiquidListSection: a press wash and an optional hairline separator; content lays out the row.
LiquidListSection
A titled group of rows on one card (iOS grouped list section).
LiquidMenu
A glass popup menu anchored to anchor (window coordinates of the button that opened it). absorbed contains adjacent glass controls whose combined source volume and foreground feed the opening droplet. While expanded, taps outside dismiss via on_dismiss; item taps call on_item with the index then dismiss.
LiquidMenuAbsorbedIconButton
A neighboring glass icon source that keeps its material mounted while an open menu owns and deforms its foreground.
LiquidMenuIconButton
A glass icon trigger that owns one continuous menu gesture. A short click opens normally; a hold opens while still pressed, then the same pointer can slide over popup rows and release to fire one.
LiquidNavBar
A large-title navigation bar driven by the content’s ScrollState (offset 0 = top). leading/trailing compose the bar buttons.
LiquidSearchField
A capsule search field: magnifier icon and editable text.
LiquidSegmentedControl
A segmented control. labels are equal-width segments; selected is the active index; on_select receives the committed index. Segments tap AND swipe: dragging slides the indicator with the finger as a glass lens.
LiquidSlider
A 0..=1 slider. The caller owns value; on_change streams new values while dragging or on tap.
LiquidTabBar
A unified floating glass tab bar with every destination inside one pill.
LiquidTabBarSearchAccessory
The standard detached accessory: a circular glass search button.
LiquidTabBarWithAccessory
A floating glass tab bar with a detached accessory to its right.
LiquidToggle
An on/off switch. checked is owned by the caller; on_change receives the requested new value. The thumb both taps and swipes.
liquid_menu_trigger_input
Attaches the shared menu-trigger gesture to ANY surface (the circular nav button, a filter pill, …): a tap opens the menu; a long press claims the gesture and opens it while the finger is still down, and the SAME stream then slides through the opened menu’s rows — keeps-open accordion rows included — committing on release.
liquid_nav_bar_expanded_height
Total height the bar family occupies while expanded (inline bar + large title) — content’s top padding.
remember_liquid_menu_gesture
Remembers one continuous menu gesture channel.
tab_lens_rest_width
The resting bubble’s width for a cell pitch — the second half of the public resting contract (tab_lens_resting_left gives the position).
tab_lens_resting_left
The settled lens position for a selected cell: CELL-CENTERED at every index, exactly like the reference (bottom-bar-click f_0000 measures the end bubble’s center on its cell center, its edge flush with the pill’s rounded end). The rest width ([TAB_LENS_REST_WIDTH_FACTOR]) is what keeps the end cells legal — its overhang stays within [BLOB_MARGIN]. Public so alignment tests assert the same rule the widget settles to.