Theme — rataflow

rataflow

GitHubdocs.rscrates.io
examples/theming.rs ↗

Runtime theme switching demonstration.

Shows how to toggle between Dark, Light, and a custom pastel theme at runtime. Press t to cycle themes — all elements update immediately.

Theming

Set flow.theme — built-in content types (TextContent, StepEdge, StraightEdge) and library-rendered elements (background, controls, minimap, handles, edge preview) all resolve from flow.theme at render time. Custom NodeContent/EdgeContent implementations can read ctx.theme.palette() for consistent colors.

Theme::Custom(palette) builds a fully custom palette (see the Sakura theme).