Expand description
Theming. A palette the custom-painted components (graph/depgraph/map)
read from the egui context, plus matching egui Visuals for the standard
widgets (pop/table/pipeline). Call set_theme once on the context and every
facet follows. Ships a Theme::default look, a Theme::sci_fi
neon-on-near-black look, and a switchable family of striking palettes
(Theme::nordic_aurora, Theme::cyberpunk_neon, Theme::amber_crt,
Theme::deep_space, Theme::hugin_noir). Enumerate them with
Theme::ALL / Theme::by_name to build a picker.
Modules§
- probe
- Palette-consumption probe — the machine-readable witness that a component
consumed the active
Theme.themerecords the palette name it returns here; a headless testresets the probe, renders one component, then readspaintedto assert the component painted with the palette it was given (notdefault). Thread-local so parallel test cells don’t interfere; cheap (aCell), and a no-op cost for production renders that never read it.
Structs§
- Theme
- The facett palette. All custom-painted colours come from here.
Functions§
- set_
theme - Store
themeon the context and apply its eguiVisuals. Call once per frame (cheap) or whenever the theme changes; every facet picks it up. - theme
- The theme stored on the ui’s context (or
Theme::defaultif none).