Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Eyedropper test: outside the picker is outside the dialog's own layer

moppeeer5819e3aea8b2
diff --git a/crates/ui-egui/src/dialogs/tests.rs b/crates/ui-egui/src/dialogs/tests.rs
index 72826aa80..4a97d6770 100644
--- a/crates/ui-egui/src/dialogs/tests.rs
+++ b/crates/ui-egui/src/dialogs/tests.rs
@@ -3535,7 +3535,7 @@ fn the_color_pickers_eyedropper_takes_a_colour_off_the_page() {
[(60.0, 660.0), (60.0, 80.0), (300.0, 600.0), (540.0, 80.0)]
.into_iter()
.map(|(x, y)| xf.to_screen(layout.slots[0].xf * designcraft_geom::Point::new(x, y)))
- .find(|p| h.ctx.layer_id_at(*p).is_none_or(|l| l.order != egui::Order::Foreground))
+ .find(|p| h.ctx.layer_id_at(*p).is_none_or(|l| l.id != egui::Id::unique("dialog")))
.expect("a point of the frame outside the picker")
};
let from = h.get_by_label("Eyedropper: drag it onto the page").rect().center();