Skip to content

Commit 5e0e11b

Browse files
committed
Update the UI colors of the node graph data types
1 parent 704dad4 commit 5e0e11b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

frontend/src/components/Editor.svelte

+8-8
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@
105105
--color-error-red: #d6536e;
106106
--color-error-red-rgb: 214, 83, 110;
107107
108-
--color-data-general: #c5c5c5;
109-
--color-data-general-dim: #767676;
108+
--color-data-general: #cfcfcf;
109+
--color-data-general-dim: #8a8a8a;
110110
--color-data-raster: #e4bb72;
111111
--color-data-raster-dim: #8b7752;
112112
--color-data-vectordata: #65bbe5;
113113
--color-data-vectordata-dim: #4b778c;
114-
--color-data-number: #cbbab4;
115-
--color-data-number-dim: #87736b;
116-
--color-data-group: #6b84e8;
117-
--color-data-group-dim: #4a557b;
118-
--color-data-artboard: #70a898;
119-
--color-data-artboard-dim: #3a6156;
114+
--color-data-group: #66b195;
115+
--color-data-group-dim: #3d725e;
116+
--color-data-artboard: #fbf9eb;
117+
--color-data-artboard-dim: #b9b9a9;
118+
--color-data-number: #c9a699;
119+
--color-data-number-dim: #886b60;
120120
121121
--color-none: white;
122122
--color-none-repeat: no-repeat;

frontend/src/components/views/Graph.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
const LINE_WIDTH = 2;
208208
209209
// Calculate coordinates for input and output connectors
210-
const inX = verticalIn ? inputBounds.x + inputBounds.width / 2 : inputBounds.x + 1;
210+
const inX = verticalIn ? inputBounds.x + inputBounds.width / 2 : inputBounds.x;
211211
const inY = verticalIn ? inputBounds.y + inputBounds.height - VERTICAL_WIRE_OVERLAP_ON_SHAPED_CAP : inputBounds.y + inputBounds.height / 2;
212212
const outX = verticalOut ? outputBounds.x + outputBounds.width / 2 : outputBounds.x + outputBounds.width - 1;
213213
const outY = verticalOut ? outputBounds.y + VERTICAL_WIRE_OVERLAP_ON_SHAPED_CAP : outputBounds.y + outputBounds.height / 2;
@@ -475,7 +475,7 @@
475475
const outConnectorX = (outX - containerBounds.x) / $nodeGraph.transform.scale;
476476
const outConnectorY = (outY - containerBounds.y) / $nodeGraph.transform.scale;
477477
478-
const inX = verticalIn ? inputBounds.x + inputBounds.width / 2 : inputBounds.x + 1;
478+
const inX = verticalIn ? inputBounds.x + inputBounds.width / 2 : inputBounds.x;
479479
const inY = verticalIn ? inputBounds.y + inputBounds.height - VERTICAL_WIRE_OVERLAP_ON_SHAPED_CAP : inputBounds.y + inputBounds.height / 2;
480480
const inConnectorX = (inX - containerBounds.x) / $nodeGraph.transform.scale;
481481
const inConnectorY = (inY - containerBounds.y) / $nodeGraph.transform.scale;

0 commit comments

Comments
 (0)