Skip to main content

shadow

Function shadow 

Source
pub fn shadow(r: &ResolvedTokens, prefix: &str) -> Option<Shadow>
Expand description

The shadow a group of tokens gives (<prefix>offset-x, offset-y, blur, spread and color; shadow.window. or a component’s side-area.shadow-), as egui’s [Shadow], rounded to its whole points; None when the colour is missing. egui’s spread cannot be negative: below 0 it is 0.