1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00
Files
egui/crates
Emil Ernerfeldt 7390932ab6 Fix widgets being styled with the wrong state on their first pass
`Ui::widget_style` reads the widget state from the response of the
previous pass. When there is no such response yet it fell back to
`WidgetState::Inactive`, styling the widget wrong for one pass.
Now we request a discard instead, so the widget is painted only once
we know its state.

Also make the default `SeparatorStyle` read `noninteractive.bg_stroke`
directly: a separator is never interactive, so its stroke should not
depend on the widget state. `inactive.bg_stroke` is `Stroke::NONE`,
which made the separator invisible.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-04 14:30:25 +02:00
..
2026-07-20 11:07:29 +02:00