egui/crates
Lucas Meurer e8e99a0bb6
Fix manual `Popup` not closing (#7383)
Fixes manually created popups (via `Popup::new`) not closing, since
widget_clicked_elsewhere was always false.

This example would never close:

```rs
    let mut open = true;

    eframe::run_simple_native("My egui App", options, move |ctx, _frame| {
        egui::CentralPanel::default().show(ctx, |ui| {
            let response = egui::Popup::new(
                Id::new("popup"),
                ctx.clone(),
                PopupAnchor::Position(Pos2::new(10.0, 10.0)),
                LayerId::new(Order::Foreground, Id::new("popup")),
            )
            .open(open)
            .show(|ui| {
                ui.label("This is a popup!");
                ui.label("You can put anything in here.");
            });

            if let Some(response) = response {
                if response.response.should_close() {
                    open = false;
                }
            }
        });
    })
```

I also noticed that the Color submenu in the popups example had a double
arrow (must have been broken in the atoms PR):

<img width="248" height="110" alt="Screenshot 2025-08-07 at 13 42 28"
src="https://github.com/user-attachments/assets/a4e0c267-ae71-4b2c-a1f0-f53f9662d026"
/>

Also fixed this in the PR.
2025-08-07 14:18:04 +02:00
..
ecolor Align `Color32` to 4 bytes (#7318) 2025-08-05 12:04:30 +02:00
eframe Enable `clippy::iter_over_hash_type` lint (#7421) 2025-08-06 13:55:53 +02:00
egui Fix manual `Popup` not closing (#7383) 2025-08-07 14:18:04 +02:00
egui-wgpu Enable wgpu default features in eframe / egui_wgpu default features (#7344) 2025-08-05 21:21:00 +02:00
egui-winit Enable `clippy::iter_over_hash_type` lint (#7421) 2025-08-06 13:55:53 +02:00
egui_demo_app Improve texture filtering by doing it in gamma space (#7311) 2025-07-07 17:46:27 +02:00
egui_demo_lib Fix manual `Popup` not closing (#7383) 2025-08-07 14:18:04 +02:00
egui_extras Fix memory leak when `forget_image` is called while loading (#7380) 2025-08-05 14:41:32 +02:00
egui_glow Enable `clippy::iter_over_hash_type` lint (#7421) 2025-08-06 13:55:53 +02:00
egui_kittest Enable more clippy lints (#7418) 2025-08-05 19:47:26 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Enable more clippy lints (#7418) 2025-08-05 19:47:26 +02:00
epaint Enable `clippy::iter_over_hash_type` lint (#7421) 2025-08-06 13:55:53 +02:00
epaint_default_fonts Release 0.32.0 - Atoms, popups, and better SVG support (#7329) 2025-07-10 16:58:39 +02:00