From 70ebb16359f25999b77fbe83e4c6f89d7d266ca7 Mon Sep 17 00:00:00 2001 From: JGerla Date: Thu, 2 Oct 2025 12:43:44 +0200 Subject: [PATCH] feat: modified css styling for nodes to have different colors per type updated the nodes to have a different colour per NodeType, so it is easier to see what nodes are of what type in the graph. ref: N25B-114 --- src/visualProgrammingUI/VisProgUI.css | 38 +++++++++++++++++-- .../components/DragDropSidebar.tsx | 10 ++--- .../components/NodeDefinitions.tsx | 8 ++-- 3 files changed, 44 insertions(+), 12 deletions(-) diff --git a/src/visualProgrammingUI/VisProgUI.css b/src/visualProgrammingUI/VisProgUI.css index 35645a7..a9727c2 100644 --- a/src/visualProgrammingUI/VisProgUI.css +++ b/src/visualProgrammingUI/VisProgUI.css @@ -1,7 +1,39 @@ .default-node { - padding: 10px 20px; + padding: 10px 15px; background-color: white; - outline-style: solid; border-radius: 5pt; - outline-width: 1pt; + outline: black solid 2pt; + filter: drop-shadow(0 0 0.75rem black); +} + +.default-node__norm { + padding: 10px 15px; + background-color: white; + border-radius: 5pt; + outline: forestgreen solid 2pt; + filter: drop-shadow(0 0 0.25rem forestgreen); +} + +.default-node__phase { + padding: 10px 15px; + background-color: white; + border-radius: 5pt; + outline: dodgerblue solid 2pt; + filter: drop-shadow(0 0 0.25rem dodgerblue); +} + +.default-node__start { + padding: 10px 15px; + background-color: white; + border-radius: 5pt; + outline: orange solid 2pt; + filter: drop-shadow(0 0 0.25rem orange); +} + +.default-node__end { + padding: 10px 15px; + background-color: white; + border-radius: 5pt; + outline: red solid 2pt; + filter: drop-shadow(0 0 0.25rem red); } \ No newline at end of file diff --git a/src/visualProgrammingUI/components/DragDropSidebar.tsx b/src/visualProgrammingUI/components/DragDropSidebar.tsx index b3926d9..08ce022 100644 --- a/src/visualProgrammingUI/components/DragDropSidebar.tsx +++ b/src/visualProgrammingUI/components/DragDropSidebar.tsx @@ -120,20 +120,20 @@ export function Sidebar() { ); return ( -