Skip to main content

Module icon

Module icon 

Expand description

IconWidget — a leaf that paints one themed vector glyph from the shared crate::icons::Icon set, at one of the theme’s three icon sizes (IconSize).

Wraps the immediate-mode crate::icons::Icon::draw helper in the Widget contract so an icon can be dropped straight into a Row/Column/Container like any other widget, sized by the layout pass, and tinted from the active Theme.

Defaults to Theme::text_primary and the lucide 1.5px stroke; see IconWidget::with_color, IconWidget::dim, IconWidget::with_stroke.

Structs§

IconWidget
Themed glyph widget — see module docs.

Enums§

IconSize
Which of the theme’s icon sizes a glyph takes: metrics.icon_sm, icon_md or icon_lg (14, 20 and 24 by default).