mirror of
https://github.com/storytold/egui.git
synced 2026-11-20 17:42:29 +01:00
An idle `dnd_drop_zone` now keeps the supplied frame's fill and stroke instead of replacing them with the inactive widget style. Drag highlighting stays the same. Callers that previously relied on idle colors being ignored will now see their supplied frame styling. * Closes <https://github.com/emilk/egui/issues/5695> * [x] I have followed the instructions in the PR template ## Screenshots From the new snapshot test `tests/egui_tests/tests/test_drop_zone.rs`. A frame with no styling of its own (transparent fill and no stroke, e.g. `Frame::default()`) still falls back to the inactive widget style, so plain drop zones look the same as before. | | Before (`main`) | After | |---|---|---| | Idle |  |  | | Dragging over the styled zone (unchanged) |  |  | --------- Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>