From d53074487c84d668a10fdf9142d78863d8cef494 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 9 Oct 2026 16:06:40 +0700 Subject: [PATCH] Fix #725: the selection marquee shows on the pasteboard too It was grey dashes only, which vanish on the grey pasteboard. It is now dark dashes over a light line, so it reads on white artboards and on the pasteboard alike. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/canvas.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index f722af5b..8bd01189 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -732,11 +732,13 @@ fn zoom_about(vm: &mut View, rect: egui::Rect, p: Pos2, zoom: f64) { vm.center += before - Xf::new(rect, vm).to_doc(p); } -/// A dashed marquee around screen rectangle `r`. +/// A marquee around screen rectangle `r`: dark dashes over a light line, so it shows on a white +/// artboard and on the grey pasteboard alike (#725). fn marquee(p: &egui::Painter, r: egui::Rect) { let pts = [r.left_top(), r.right_top(), r.right_bottom(), r.left_bottom(), r.left_top()]; + p.add(Shape::line(pts.to_vec(), Stroke::new(1.0, Color32::from_white_alpha(230)))); for w in pts.windows(2) { - p.extend(Shape::dashed_line(&[w[0], w[1]], Stroke::new(1.0, Color32::from_gray(90)), 3.0, 3.0)); + p.extend(Shape::dashed_line(&[w[0], w[1]], Stroke::new(1.0, Color32::from_gray(40)), 3.0, 3.0)); } }