Files
egui/tests
Peder BerganandEmil Ernerfeldt 9ebef5d10e Preserve drop-zone frame styling when idle (#8633)
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 | ![before
idle](https://raw.githubusercontent.com/emilk/egui/emilk/pr-8633-screenshots/before_idle.png)
| ![after
idle](https://raw.githubusercontent.com/emilk/egui/emilk/pr-8633-screenshots/after_idle.png)
|
| Dragging over the styled zone (unchanged) | ![before
dragging](https://raw.githubusercontent.com/emilk/egui/emilk/pr-8633-screenshots/before_dragging.png)
| ![after
dragging](https://raw.githubusercontent.com/emilk/egui/emilk/pr-8633-screenshots/after_dragging.png)
|

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2026-10-06 08:33:36 +01:00
..

Test apps

Some application to tests various parts of egui and eframe.

At some point it would be nice to have automatic screenshot regression tests for these.