Grasshopper2.Components.DisplayExamplesnamespace
Types
Grasshopper2.Components.DisplayExamples.SvgThemedIconExample
PROOF OF CONCEPT — an empty, hidden component that does nothing except carry an icon imported from an embedded SVG (see Resources/Icons/Demo/SvgIconThemingDemo.svg).
Its only purpose is to demonstrate the proposal: SVG icons can participate in Grasshopper's runtime icon theming when their colours are authored as semantic roles (e.g. fill="gh:Input"). The SVG is parsed once by SvgIcon into a native, themeable VectorIcon. Drop it on the canvas (it is Rank.Hidden, so place it via a saved file or the API) and toggle the icon theme / desaturate / light-dark to see the icon re-colour.