Skip to main content

Module icon

Module icon 

Source
Expand description

Lucide icons rendered through iced’s svg widget.

Build a Glyph with the lucide! macro so it is resolved at compile time and only the icons you use end up in the binary.

Structs§

Glyph
Embedded SVG source for one icon.

Enums§

Icon

Constants§

DISABLED_OPACITY
Opacity of an icon in a disabled component, matching its faded text.

Functions§

icon
Renders a glyph at size pixels, tinted with the theme foreground.
opacity
The opacity for an icon in an enabled or disabled component.
opaque
color with full alpha, which is how iced draws an svg tint anyway.
themed
Renders a glyph at size pixels, tinted with color resolved from the theme on every draw, and drawn at opacity.
tinted
Renders a glyph at size pixels in a fixed colour, or the theme foreground when color is None. The colour’s alpha becomes the icon’s opacity.