zng_wgt_text::icon

Function ico_size

source
pub fn ico_size(child: impl UiNode, size: impl IntoVar<FontSize>) -> impl UiNode
Expand description

P Sets the icon font size.

The FontSize::Default value enables auto size to fill, or is the font_size if cannot auto size.

Sets the ICON_SIZE_VAR that affects all icons inside the widget.