From 2aaf95ecbae223b2df4e460dfee9b78be2bd90b1 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sat, 22 Apr 2023 19:21:21 -0500 Subject: [PATCH] Make pink fill run specifically on running nodes, not any selected --- src/data/projEntry.tsx | 1 + src/features/boards/BoardNode.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index 6494574..487d63c 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -166,6 +166,7 @@ export const main = createLayer("main", function (this: BaseLayer) { : 0, progressDisplay: ProgressDisplay.Outline, progressColor: "var(--accent2)", + classes: node => ({ running: node === board.selectedNode.value }), draggable: true }, brokenFactory: { diff --git a/src/features/boards/BoardNode.vue b/src/features/boards/BoardNode.vue index ec8c687..55fe8d0 100644 --- a/src/features/boards/BoardNode.vue +++ b/src/features/boards/BoardNode.vue @@ -275,7 +275,7 @@ function mouseUp(e: MouseEvent | TouchEvent) { fill: var(--highlighted); } -.boardnode.isSelected .body { +.boardnode.running .body { fill: var(--accent1) !important; }