From 43c1b7b8819687f2c0265052dd12d4e3d2d536f4 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 28 Oct 2026 22:27:39 -0400 Subject: [PATCH] UI tests: Isocurve Analysis's engine colour is drawn from the theme's accent be859aa0d added `colors::ISOCURVE` to the engine palette; the GPU viewport draws iso curves in the theme's accent (`scene_palette`, the isocurve pass), so the engine value is only the headless snapshot's, like the body and grid colours. every_engine_colour_tag_is_placed lists it with those neutral tags. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/colour_tokens_tests.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/ui-egui/src/colour_tokens_tests.rs b/crates/ui-egui/src/colour_tokens_tests.rs index fe4343871..f315fe197 100644 --- a/crates/ui-egui/src/colour_tokens_tests.rs +++ b/crates/ui-egui/src/colour_tokens_tests.rs @@ -274,9 +274,10 @@ fn every_engine_colour_tag_is_placed() { "AXIS_Y", "AXIS_Z", ]; - // Bodies, edges, profiles, the grid and the background: the GPU viewport draws these from - // their own tokens; the engine's values are only the headless snapshot's. - const NEUTRAL: &[&str] = &["BODY", "BODY_SELECTED", "EDGE", "PROFILE", "GRID", "GRID_MAJOR", "BG_TOP", "BG_BOTTOM", "SECTION_CAP"]; + // Bodies, edges, profiles, the grid, the background and Isocurve Analysis curves (the accent): + // the GPU viewport draws these from their own tokens; the engine's values are only the + // headless snapshot's. + const NEUTRAL: &[&str] = &["BODY", "BODY_SELECTED", "EDGE", "PROFILE", "GRID", "GRID_MAJOR", "BG_TOP", "BG_BOTTOM", "SECTION_CAP", "ISOCURVE"]; let src = include_str!("../../engine/src/view.rs"); let start = src.find("pub mod colors {").unwrap_or(0); let block = &src[start..];