From 9805d0c518f34018eff86e4fdcd97d9b747ba2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Mon, 14 Oct 2024 19:21:09 +0200 Subject: [PATCH] FIX: Set the color of the refe range to be the next from the active ranges --- webapp/src/components/WorksheetCanvas/worksheetCanvas.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/WorksheetCanvas/worksheetCanvas.ts b/webapp/src/components/WorksheetCanvas/worksheetCanvas.ts index d89490b..e624fd5 100644 --- a/webapp/src/components/WorksheetCanvas/worksheetCanvas.ts +++ b/webapp/src/components/WorksheetCanvas/worksheetCanvas.ts @@ -17,6 +17,7 @@ import { headerTextColor, outlineColor, } from "./constants"; +import { getColor } from "../editor/util"; export interface CanvasSettings { model: Model; @@ -1281,7 +1282,7 @@ export default class WorksheetCanvas { activeRanges = activeRanges.concat([ { ...referencedRange.range, - color: "#343423", + color: getColor(activeRanges.length), }, ]); }