SecondHalfGames / yakui

yakui is a declarative Rust UI library for games
Apache License 2.0
221 stars 18 forks source link

Theming #111

Open Ralith opened 8 months ago

Ralith commented 8 months ago

I'm sure this is already on a list somewhere, but for visibility:

Theming allows applications to define a style once and apply it to large numbers of widgets without having to modify pre-existing widget definitions, or even instantiations. Theme information is hence a good candidate for thread-local state or similar, allowing it to be fetched during widget construction without laborious propagation.

Prior art: