Skip to main content

Module recipe_popover_style

Module recipe_popover_style 

Source
Expand description

Default PopoverStyle impl driven by paint-recipe data.

RecipePopoverStyle constructs the IntUI PopoverSurface (crates/teksilo-widgets/src/popover.rs) — an elevated panel with surface_main background, accent-aware shadow whose attached side is suppressed (so the panel reads as connected to its trigger), and an optional directional caret that points at the trigger.

Apps wanting a different chrome (frosted-glass popover, brutalist flat panel, custom caret) write their own impl PopoverStyle block and install per-call (Popover::style(...)) or theme-wide (theme.style_slots.popover = Some(Rc::new(MyPopover))).

Structs§

PopoverRecipe
Configurable dimensions for RecipePopoverStyle.
RecipePopoverStyle
Default PopoverStyle shipped with Teksilo. The Default and Tooltip variants produce the elevated surface_main panel with 16 px content padding; the Menu variant produces a surface_raised panel with zero content padding (so menu rows reach the edge) and a presentational a11y node (the caller owns the container role).

Constants§

MENU_POPUP_CORNER_RADIUS
Corner radius for the Menu-flavoured popup surface (menu lists, combo-box dropdowns, search-field suggestion panels).
POPOVER_BORDER_WIDTH
POPOVER_CORNER_RADIUS
POPOVER_PADDING
POPOVER_SHADOW_DENSITY
0..=1 multiplier on shape.shadow_inner_sm.color.a at paint time.