Skip to main content

snap_strokes

Function snap_strokes 

Source
pub fn snap_strokes(style: &mut Style, ppp: f32)
Expand description

Snaps a style’s stroke widths to whole physical pixels at ppp (scale::snap), so 1 point borders stay one sharp pixel at 1.25 or 1.5. install_tokens does it for the scale of the window it runs in; egui-pop’s application installs the theme again when that scale changes.