Skip to main content

Crate egui_lucide

Crate egui_lucide 

Source
Expand description

Lucide SVG icons for egui.

Apps must register the SVG loader once:

ⓘ
egui_extras::install_image_loaders(&ctx);
use egui_lucide::Lucide;
ui.add(Lucide::House.size(18.0).stroke_width(1.75));

LucideIcon::source / LucideIcon::image bake color and stroke into the SVG bytes. Display size is applied on the egui::Image, not in the path data. The texture cache key includes color and stroke so restyling is not stale.

Structs§

LucideIcon
A Lucide icon with color, stroke width, and display size.

Enums§

Lucide
Every Lucide icon shipped in this crate.

Constants§

DEFAULT_SIZE
Lucide defaults: 24×24 viewBox, stroke width 2.
DEFAULT_STROKE_WIDTH
Lucide default stroke-width.
ICON_COUNT
Number of icons in Lucide::ALL.
LUCIDE_VERSION
Lucide release this crate was generated from.