Skip to content

Commit

Permalink
Add default setting for node error colour (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored Nov 29, 2024
1 parent 2017b90 commit 7c2cce4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/extensions/core/colorPalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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,

Expand Down Expand Up @@ -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,

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/types/colorPalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 7c2cce4

Please sign in to comment.