Skip to main content

soft_outline

Function soft_outline 

pub fn soft_outline(rect: Rect) -> BezPath
Expand description

Shared silhouette for lightweight desktop floats. The asymmetry is only one or two logical pixels along each edge: enough to feel soft and held, never enough to look like a novelty blob. Generic floating windows use this exact path, body and border, so their corner radii cannot drift apart. (App-owned call and navigation cards are floating cards: crate::widget::floating_surface::paint_card.)