mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
`TextEdit` unpacked `AtomLayoutStyle` and re-applied the pieces by hand, which silently dropped `align2` and `image_tint` and made a per-widget gap lose to the theme's. Go through `AtomLayoutStyle::apply`, like `Button` and `Checkbox` do, and add a `prefix_suffix_color` so the atoms around the input keep the general text color rather than the text edit's own. Tidy the provider while here: use `Widgets::state`, split the read-only `fill`/`stroke` decision in two, and take the expansion correction from `Frame::expand_in_place`. Drop `TextVisuals::from_style`, `UiStack::inherited`, `StyleArgs::inherited` and `HasClasses::last_class`, none of which have callers. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
GUI implementation
This is the core library crate egui. It is fully platform independent without any backend. You give the egui library input each frame (mouse pos etc), and it outputs a triangle mesh for you to paint.