Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
2d7ad411
Commit
2d7ad411
authored
Apr 07, 2023
by
EllangoK
Browse files
colorPalette sets LiteGraph colors
parent
f4e359cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
web/extensions/core/colorPalette.js
web/extensions/core/colorPalette.js
+32
-2
No files found.
web/extensions/core/colorPalette.js
View file @
2d7ad411
...
...
@@ -21,8 +21,31 @@ const colorPalettes = {
"
MODEL
"
:
"
#B39DDB
"
,
// light lavender-purple
"
STYLE_MODEL
"
:
"
#C2FFAE
"
,
// light green-yellow
"
VAE
"
:
"
#FF6E6E
"
,
// bright red
}
}
},
"
litegraph_base
"
:
{
"
NODE_TITLE_COLOR
"
:
"
#999
"
,
"
NODE_SELECTED_TITLE_COLOR
"
:
"
#FFF
"
,
"
NODE_TEXT_SIZE
"
:
14
,
"
NODE_TEXT_COLOR
"
:
"
#AAA
"
,
"
NODE_SUBTEXT_SIZE
"
:
12
,
"
NODE_DEFAULT_COLOR
"
:
"
#333
"
,
"
NODE_DEFAULT_BGCOLOR
"
:
"
#353535
"
,
"
NODE_DEFAULT_BOXCOLOR
"
:
"
#666
"
,
"
NODE_DEFAULT_SHAPE
"
:
"
box
"
,
"
NODE_BOX_OUTLINE_COLOR
"
:
"
#FFF
"
,
"
DEFAULT_SHADOW_COLOR
"
:
"
rgba(0,0,0,0.5)
"
,
"
DEFAULT_GROUP_FONT
"
:
24
,
"
WIDGET_BGCOLOR
"
:
"
#222
"
,
"
WIDGET_OUTLINE_COLOR
"
:
"
#666
"
,
"
WIDGET_TEXT_COLOR
"
:
"
#DDD
"
,
"
WIDGET_SECONDARY_TEXT_COLOR
"
:
"
#999
"
,
"
LINK_COLOR
"
:
"
#9A9
"
,
"
EVENT_LINK_COLOR
"
:
"
#A86
"
,
"
CONNECTING_LINK_COLOR
"
:
"
#AFA
"
,
},
},
},
"
palette_2
"
:
{
"
id
"
:
"
palette_2
"
,
...
...
@@ -194,6 +217,13 @@ app.registerExtension({
Object
.
assign
(
app
.
canvas
.
default_connection_color_byType
,
colorPalette
.
colors
.
node_slot
);
app
.
canvas
.
draw
(
true
,
true
);
}
if
(
colorPalette
.
colors
.
litegraph_base
)
{
for
(
const
key
in
colorPalette
.
colors
.
litegraph_base
)
{
if
(
colorPalette
.
colors
.
litegraph_base
.
hasOwnProperty
(
key
)
&&
LiteGraph
.
hasOwnProperty
(
key
))
{
LiteGraph
[
key
]
=
colorPalette
.
colors
.
litegraph_base
[
key
];
}
}
}
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment