mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
`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>