From 9b438fb90eae2632f70837ab2c071545f38ed899 Mon Sep 17 00:00:00 2001 From: rmsff <17902130+rmsff@users.noreply.github.com> Date: Tue, 10 Nov 2026 15:04:08 +0300 Subject: [PATCH] Remove tool: show the centre + in its brush cursor by default (#12550) --- crates/ui-egui/src/canvas/cursors.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/canvas/cursors.rs b/crates/ui-egui/src/canvas/cursors.rs index 44de2ec950..41a6cd381d 100644 --- a/crates/ui-egui/src/canvas/cursors.rs +++ b/crates/ui-egui/src/canvas/cursors.rs @@ -37,7 +37,8 @@ pub(crate) fn pencil_tip_is_round(size: f32) -> bool { /// Whether a brush-tip circle draws its centre mark. /// Clone Stamp and Healing Brush stay an empty circle until Option is held, the source-point /// cursor. Other brushes follow Preferences › Cursors › Show Crosshair in Brush Tip, as in -/// Photoshop; the Background Eraser always shows its sampling hotspot. +/// Photoshop; the Background Eraser always shows its sampling hotspot, and the Remove tool its +/// centre + (#12550). pub(super) fn brush_tip_centre(tool: Tool, option: bool, show_crosshair: bool) -> bool { if tool == Tool::QuickSelection { return false; @@ -45,7 +46,7 @@ pub(super) fn brush_tip_centre(tool: Tool, option: bool, show_crosshair: bool) - if matches!(tool, Tool::CloneStamp | Tool::Healing) { return option || show_crosshair; } - show_crosshair || tool == Tool::BackgroundEraser + show_crosshair || matches!(tool, Tool::BackgroundEraser | Tool::Remove) } /// The display colour of an RGB triple (0..1 per channel) as an egui colour.