mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Moves global classnames to e.g. `egui::class::ROOT`. Widget specific classes live on the widgets struct. Adds some more classes for our buttons styling options (`CLASS_SMALL` etc), so that custom `StyleProvider`s can choose to implement them differently or ignore them altogether. Also removes some styleproviders that were partly or completely unused (e.g. basestyle / labelstyle). We can add them back once we actually implement styling for those. --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Example showing how the style engine work.
A custom StyleProvider<ButtonStyle> styles every button, using classes to tell them apart.
The theme can be edited live in the left panel.
cargo run -p styling_engine