Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSVG ¶
FromSVG returns an image size x size points drawn from the SVG document data at every zoom, with currentColor in c (Lucide, Tabler and other monochrome icons). Images are cached per document, size and colour like Get's: calling FromSVG again with the colour of the new theme makes a new image only for a colour not seen before. The App owns the image like every gowt.Image.
func Get ¶
Get returns the named icon from the system set of the current OS (SF Symbols, Segoe Fluent Icons, freedesktop symbolic icons), or from the embedded Lucide set when the system has none. The result is drawn at every zoom and tinted for the theme at call time: after App.OnThemeChange call Get again (the old image keeps its colour). Images are cached per name, size and colour and owned by the App like every gowt.Image; after a Dispose, Get makes the image again. It panics on an unknown name; Names lists the valid ones.