Skip to main content

default_edge_style

Function default_edge_style 

Source
pub fn default_edge_style(theme: &Theme, status: EdgeStatus) -> EdgeStyle
Expand description

Complete theme-derived edge style with status feedback: Idle is a 2px solid stroke in the theme’s secondary color; PendingCut tints the stroke with the theme’s edge-cutting color.

The default stroke is a single concrete color. To make an edge follow its connected pins (e.g. a port-typed color), build the gradient from each endpoint’s PinInfo in the edge style closure and struct-update over this base.