Expand description
The Liquid component set.
Structs§
- Glass
Button Spec - Configuration for
GlassButton/GlassIconButton. - Glass
Icon Button Group Item - One action in a
GlassIconButtonGroup. - Glass
Icon Button Group Spec - Geometry and interaction material for
GlassIconButtonGroup. - Liquid
List RowSpec - Configuration for
LiquidListRow. - Liquid
Menu Absorbed Source - A neighboring glass icon control whose volume and foreground are absorbed by an opening menu surface.
- Liquid
Menu Gesture - 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.
- Liquid
Menu Item - One menu entry.
- Liquid
Menu Spec - Layout parameters for a
LiquidMenu. - Liquid
NavBar Spec - Configuration for
LiquidNavBar. - Liquid
Search Field Spec - Configuration for
LiquidSearchField. - Liquid
Tab - One tab: icon path data (24×24 viewBox), label, and icon treatment.
- Liquid
TabBar Spec - Layout parameters for a
LiquidTabBar.
Enums§
- Glass
Button Style - Visual style of a
GlassButton. - Liquid
TabIcon Style - Visual treatment for a tab icon.
Functions§
- Glass
Button - A glass button.
contentcomposes the label (seeGlassButtonwithText, or ancrate::icons::Icon+ text row). - Glass
Button Label - Convenience text label styled for the enclosing button.
- Glass
Icon Button - A circular glass icon button (44dp target).
- Glass
Icon Button Group - 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.
- Glass
Surface - A container rendered on the Liquid Glass material: its backdrop is
refracted/blurred behind
content, clipped toglass.shape. - Liquid
Card - An elevated surface with the grouped-inset card look.
- Liquid
Chip - A selectable filter pill (the Library “All / Receipts” chips). Selected chips render on glass; unselected ones sit on the fill color.
- Liquid
List Row - One tappable row inside a
LiquidCard/LiquidListSection: a press wash and an optional hairline separator;contentlays out the row. - Liquid
List Section - A titled group of rows on one card (iOS grouped list section).
- Liquid
Menu - A glass popup menu anchored to
anchor(window coordinates of the button that opened it).absorbedcontains adjacent glass controls whose combined source volume and foreground feed the opening droplet. Whileexpanded, taps outside dismiss viaon_dismiss; item taps callon_itemwith the index then dismiss. - Liquid
Menu Absorbed Icon Button - A neighboring glass icon source that keeps its material mounted while an open menu owns and deforms its foreground.
- Liquid
Menu Icon Button - 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.
- Liquid
NavBar - A large-title navigation bar driven by the content’s
ScrollState(offset 0 = top).leading/trailingcompose the bar buttons. - Liquid
Search Field - A capsule search field: magnifier icon and editable text.
- Liquid
Segmented Control - A segmented control.
labelsare equal-width segments;selectedis the active index;on_selectreceives the committed index. Segments tap AND swipe: dragging slides the indicator with the finger as a glass lens. - Liquid
Slider - A 0..=1 slider. The caller owns
value;on_changestreams new values while dragging or on tap. - Liquid
TabBar - A unified floating glass tab bar with every destination inside one pill.
- Liquid
TabBar Search Accessory - The standard detached accessory: a circular glass search button.
- Liquid
TabBar With Accessory - A floating glass tab bar with a detached accessory to its right.
- Liquid
Toggle - An on/off switch.
checkedis owned by the caller;on_changereceives 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_leftgives 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.