FIX: Set the color of the refe range to be the next from the active ranges

This commit is contained in:
Nicolás Hatcher
2024-10-14 19:21:09 +02:00
committed by Nicolás Hatcher Andrés
parent 10a9d36f3d
commit 9805d0c518

View File

@@ -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),
},
]);
}