From 54e3115023d1f9ea3b0be04319545f7ee23a7b3f Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Thu, 13 Nov 2025 11:35:23 +0530 Subject: [PATCH] Theme aware coloring scheme for raw point cloud in dark mode. --- steps/src/drawUtils.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/steps/src/drawUtils.js b/steps/src/drawUtils.js index d9361c7..076b38c 100644 --- a/steps/src/drawUtils.js +++ b/steps/src/drawUtils.js @@ -271,7 +271,12 @@ export function drawPointCloud(p, points, plotScales) { p.stroke(c); // Default point color if no specific coloring is applied. } else { - p.stroke(0, 150, 255); + // --- START: THEME-AWARE POINT COLOR --- + const isDark = document.documentElement.classList.contains("dark"); + // Use a bright lime green for dark mode for better visibility, and the original blue for light mode. + const pointColor = isDark ? p.color(244, 255, 0) : p.color(0, 150, 255); + p.stroke(pointColor); + // --- END: THEME-AWARE POINT COLOR --- } p.point(pt.x * plotScales.plotScaleX, pt.y * plotScales.plotScaleY); }