From ca4fa0171bf7db0d4519f72f97bc71fdd5d14bfc Mon Sep 17 00:00:00 2001 From: HassanKhan Date: Thu, 26 Nov 2026 12:41:14 +0500 Subject: [PATCH] Stroke panel: cap icon test also checks the three strokes differ (#9229) --- crates/ui-egui/src/icons.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/ui-egui/src/icons.rs b/crates/ui-egui/src/icons.rs index fc362bce98..30b6edfb49 100644 --- a/crates/ui-egui/src/icons.rs +++ b/crates/ui-egui/src/icons.rs @@ -231,6 +231,13 @@ mod tests { assert_eq!(end_line(icon), butt_end, "the {name} cap icon marks the end of the path where the butt cap icon does"); assert!(stroke_opacity(icon) < 1.0, "the {name} cap icon's stroke is lighter than its end-of-path line"); } + // The stroke bar, everything before the end-of-path line, shows each cap differently. + let bar = |icon: &str| -> String { icon.rsplit_once("