From 5638b0ca099fb760594dd2b384ceff029a8bfab6 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Tue, 27 Oct 2026 21:11:54 -0500 Subject: [PATCH] Format Shape: the glow size test checks the colour and transparency are kept --- crates/ui-egui/src/panels/effect_presets_tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/panels/effect_presets_tests.rs b/crates/ui-egui/src/panels/effect_presets_tests.rs index 166a4477..d23651f2 100644 --- a/crates/ui-egui/src/panels/effect_presets_tests.rs +++ b/crates/ui-egui/src/panels/effect_presets_tests.rs @@ -53,8 +53,14 @@ fn preset_tiles_set_shadow_glow_and_soft_edges() { let fx = effects(&h); assert!(fx.outer_shadow.is_none() && fx.inner_shadow.is_none()); + // A radius tile keeps the glow's colour and transparency. + h.state_mut().session.execute("shape.effects", &json!({"glowProps": {"color": "accent2", "transparency": 0.35, "radius": 8.0}})).unwrap(); + h.run_steps(3); + let colour = effects(&h).glow.unwrap().color; click(&mut h, "18 pt glow"); - assert_eq!(effects(&h).glow.unwrap().radius, 18.0); + let glow = effects(&h).glow.unwrap(); + assert_eq!(glow.radius, 18.0); + assert_eq!(glow.color, colour); click(&mut h, "No glow"); assert!(effects(&h).glow.is_none());