From 0a4a3fb46cb081439a76e203df5391527d4f3979 Mon Sep 17 00:00:00 2001 From: JGerla Date: Thu, 2 Oct 2025 13:12:01 +0200 Subject: [PATCH] feat: fixed dark mode compliancy for nodes and background ref: N25B-114 --- src/visualProgrammingUI/VisProgUI.css | 10 +++++----- src/visualProgrammingUI/VisProgUI.tsx | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/visualProgrammingUI/VisProgUI.css b/src/visualProgrammingUI/VisProgUI.css index a9727c2..099f977 100644 --- a/src/visualProgrammingUI/VisProgUI.css +++ b/src/visualProgrammingUI/VisProgUI.css @@ -1,6 +1,6 @@ .default-node { padding: 10px 15px; - background-color: white; + background-color: canvas; border-radius: 5pt; outline: black solid 2pt; filter: drop-shadow(0 0 0.75rem black); @@ -8,7 +8,7 @@ .default-node__norm { padding: 10px 15px; - background-color: white; + background-color: canvas; border-radius: 5pt; outline: forestgreen solid 2pt; filter: drop-shadow(0 0 0.25rem forestgreen); @@ -16,7 +16,7 @@ .default-node__phase { padding: 10px 15px; - background-color: white; + background-color: canvas; border-radius: 5pt; outline: dodgerblue solid 2pt; filter: drop-shadow(0 0 0.25rem dodgerblue); @@ -24,7 +24,7 @@ .default-node__start { padding: 10px 15px; - background-color: white; + background-color: canvas; border-radius: 5pt; outline: orange solid 2pt; filter: drop-shadow(0 0 0.25rem orange); @@ -32,7 +32,7 @@ .default-node__end { padding: 10px 15px; - background-color: white; + background-color: canvas; border-radius: 5pt; outline: red solid 2pt; filter: drop-shadow(0 0 0.25rem red); diff --git a/src/visualProgrammingUI/VisProgUI.tsx b/src/visualProgrammingUI/VisProgUI.tsx index a2b1e9c..0544f52 100644 --- a/src/visualProgrammingUI/VisProgUI.tsx +++ b/src/visualProgrammingUI/VisProgUI.tsx @@ -13,6 +13,7 @@ import { useEdgesState, reconnectEdge, addEdge, + MiniMap, MarkerType, type Edge, type Connection, @@ -110,6 +111,7 @@ const VisProgUI = ()=> { proOptions={{hideAttribution: true }} > +