SecondHalfGames / yakui

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

Theming #111

Open Ralith opened 1 year ago

Ralith commented 1 year 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: