From f62e58860ba846384c389ec77ece2e3585f2b9be Mon Sep 17 00:00:00 2001 From: Trevor Brown Date: Wed, 11 Nov 2026 00:05:25 -0500 Subject: [PATCH] M12: Mind maps: an icon that reads as one idea branching into three (#2226) Redraw Icon::MindMap as an outlined root node on the left with three curved branches to three outlined child nodes on the right, the middle one level with the root. Same stroke and corner style as its outlined neighbours, centred in the 16-unit box, instead of the filled blob and fork that read as a tuning fork. Co-Authored-By: Claude Sonnet 5.5 Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium --- crates/ui-egui/src/icons/draw.rs | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/crates/ui-egui/src/icons/draw.rs b/crates/ui-egui/src/icons/draw.rs index 4a3c7a18f..f271b0d4a 100644 --- a/crates/ui-egui/src/icons/draw.rs +++ b/crates/ui-egui/src/icons/draw.rs @@ -1055,11 +1055,24 @@ fn draw(p: &P, icon: Icon) { p.poly(&[(5.0, 8.3), (7.2, 10.5), (11.0, 6.0)], false); } MindMap => { - p.fill_rect(1.0, 6.5, 6.0, 9.5, 1.0); - p.path(&[(6.0, 8.0), (7.5, 8.0), (8.3, 7.2), (8.7, 5.0), (9.5, 4.0), (11.0, 4.0)], false); - p.path(&[(6.0, 8.0), (7.5, 8.0), (8.3, 8.8), (8.7, 11.0), (9.5, 12.0), (11.0, 12.0)], false); - p.line(11.0, 4.0, 15.0, 4.0); - p.line(11.0, 12.0, 15.0, 12.0); + // One outlined idea on the left branching into three outlined ideas on the right, + // the middle one level with the root. + p.rect(1.5, 6.0, 5.5, 10.0, 1.0); + p.line(5.5, 8.0, 10.5, 8.0); + for (y, ty) in [(1.5, 3.0), (11.5, 13.0)] { + p.rect(10.5, y, 14.5, y + 3.0, 1.0); + let curve: Vec<(f32, f32)> = (0..=10) + .map(|i| { + let t = i as f32 / 10.0; + let u = 1.0 - t; + let x = u * u * u * 5.5 + 3.0 * u * u * t * 8.0 + 3.0 * u * t * t * 8.0 + t * t * t * 10.5; + let y = u * u * u * 8.0 + 3.0 * u * u * t * 8.0 + 3.0 * u * t * t * ty + t * t * t * ty; + (x, y) + }) + .collect(); + p.path(&curve, false); + } + p.rect(10.5, 6.5, 14.5, 9.5, 1.0); } Timer => { p.circle(8.0, 9.0, 5.5);