Skip to main content

badge_size

Function badge_size 

pub fn badge_size(label_w: f32, label_h: f32, theme: &Theme) -> (f64, f64)
Expand description

A count badge’s size: s1 of padding above and below the line, s1 either side, never shorter than s4 nor narrower than it is tall.