From 7c2cce40de54e74ae695ec9463489bde67ff52f9 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 30 Nov 2024 05:20:54 +1100 Subject: [PATCH] Add default setting for node error colour (#1738) --- src/extensions/core/colorPalette.ts | 6 ++++++ src/types/colorPalette.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/src/extensions/core/colorPalette.ts b/src/extensions/core/colorPalette.ts index ed4f010b9..ea1084377 100644 --- a/src/extensions/core/colorPalette.ts +++ b/src/extensions/core/colorPalette.ts @@ -45,6 +45,7 @@ const colorPalettes: ColorPalettes = { NODE_DEFAULT_SHAPE: 'box', NODE_BOX_OUTLINE_COLOR: '#FFF', NODE_BYPASS_BGCOLOR: '#FF00FF', + NODE_ERROR_COLOUR: '#E00', DEFAULT_SHADOW_COLOR: 'rgba(0,0,0,0.5)', DEFAULT_GROUP_FONT: 24, @@ -111,6 +112,7 @@ const colorPalettes: ColorPalettes = { NODE_DEFAULT_SHAPE: 'box', NODE_BOX_OUTLINE_COLOR: '#000', NODE_BYPASS_BGCOLOR: '#FF00FF', + NODE_ERROR_COLOUR: '#E00', DEFAULT_SHADOW_COLOR: 'rgba(0,0,0,0.1)', DEFAULT_GROUP_FONT: 24, @@ -175,6 +177,7 @@ const colorPalettes: ColorPalettes = { NODE_DEFAULT_SHAPE: 'box', NODE_BOX_OUTLINE_COLOR: '#fdf6e3', // Base3 NODE_BYPASS_BGCOLOR: '#FF00FF', + NODE_ERROR_COLOUR: '#E00', DEFAULT_SHADOW_COLOR: 'rgba(0,0,0,0.5)', DEFAULT_GROUP_FONT: 24, @@ -252,6 +255,7 @@ const colorPalettes: ColorPalettes = { NODE_DEFAULT_SHAPE: 'box', NODE_BOX_OUTLINE_COLOR: '#FFF', NODE_BYPASS_BGCOLOR: '#FF00FF', + NODE_ERROR_COLOUR: '#E00', DEFAULT_SHADOW_COLOR: 'rgba(0,0,0,0.5)', DEFAULT_GROUP_FONT: 22, WIDGET_BGCOLOR: '#2b2f38', @@ -327,6 +331,7 @@ const colorPalettes: ColorPalettes = { NODE_DEFAULT_SHAPE: 'box', NODE_BOX_OUTLINE_COLOR: '#e5eaf0', NODE_BYPASS_BGCOLOR: '#FF00FF', + NODE_ERROR_COLOUR: '#E00', DEFAULT_SHADOW_COLOR: 'rgba(0,0,0,0.5)', DEFAULT_GROUP_FONT: 24, WIDGET_BGCOLOR: '#2e3440', @@ -402,6 +407,7 @@ const colorPalettes: ColorPalettes = { NODE_DEFAULT_SHAPE: 'box', NODE_BOX_OUTLINE_COLOR: '#e5eaf0', NODE_BYPASS_BGCOLOR: '#FF00FF', + NODE_ERROR_COLOUR: '#E00', DEFAULT_SHADOW_COLOR: 'rgba(0,0,0,0.5)', DEFAULT_GROUP_FONT: 24, WIDGET_BGCOLOR: '#161b22', diff --git a/src/types/colorPalette.ts b/src/types/colorPalette.ts index e12aed9d0..e95e6d2dd 100644 --- a/src/types/colorPalette.ts +++ b/src/types/colorPalette.ts @@ -45,6 +45,7 @@ const litegraphBaseSchema = z NODE_DEFAULT_SHAPE: z.string(), NODE_BOX_OUTLINE_COLOR: z.string(), NODE_BYPASS_BGCOLOR: z.string(), + NODE_ERROR_COLOUR: z.string(), DEFAULT_SHADOW_COLOR: z.string(), DEFAULT_GROUP_FONT: z.number(), WIDGET_BGCOLOR: z.string(),