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§
- Popover
Recipe - Configurable dimensions for
RecipePopoverStyle. - Recipe
Popover Style - Default
PopoverStyleshipped with Teksilo. TheDefaultandTooltipvariants produce the elevatedsurface_mainpanel with 16 px content padding; theMenuvariant produces asurface_raisedpanel 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.aat paint time.