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
eae159eb
Commit
eae159eb
authored
Apr 11, 2023
by
EllangoK
Browse files
adds light theme, fixes multiline css
parent
c975fef6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
6 deletions
+59
-6
web/extensions/core/colorPalette.js
web/extensions/core/colorPalette.js
+57
-4
web/style.css
web/style.css
+2
-2
No files found.
web/extensions/core/colorPalette.js
View file @
eae159eb
...
...
@@ -5,9 +5,9 @@ import { api } from "/scripts/api.js";
// Manage color palettes
const
colorPalettes
=
{
"
palette_1
"
:
{
"
id
"
:
"
palette_1
"
,
"
name
"
:
"
Palette 1
"
,
"
dark
"
:
{
"
id
"
:
"
dark
"
,
"
name
"
:
"
Dark (Default)
"
,
"
colors
"
:
{
"
node_slot
"
:
{
"
CLIP
"
:
"
#FFD500
"
,
// bright yellow
...
...
@@ -58,6 +58,59 @@ const colorPalettes = {
}
},
},
"
light
"
:
{
"
id
"
:
"
light
"
,
"
name
"
:
"
Light
"
,
"
colors
"
:
{
"
node_slot
"
:
{
"
CLIP
"
:
"
#FFA726
"
,
// orange
"
CLIP_VISION
"
:
"
#5C6BC0
"
,
// indigo
"
CLIP_VISION_OUTPUT
"
:
"
#8D6E63
"
,
// brown
"
CONDITIONING
"
:
"
#EF5350
"
,
// red
"
CONTROL_NET
"
:
"
#66BB6A
"
,
// green
"
IMAGE
"
:
"
#42A5F5
"
,
// blue
"
LATENT
"
:
"
#AB47BC
"
,
// purple
"
MASK
"
:
"
#9CCC65
"
,
// light green
"
MODEL
"
:
"
#7E57C2
"
,
// deep purple
"
STYLE_MODEL
"
:
"
#D4E157
"
,
// lime
"
VAE
"
:
"
#FF7043
"
,
// deep orange
},
"
litegraph_base
"
:
{
"
NODE_TITLE_COLOR
"
:
"
#222
"
,
"
NODE_SELECTED_TITLE_COLOR
"
:
"
#000
"
,
"
NODE_TEXT_SIZE
"
:
14
,
"
NODE_TEXT_COLOR
"
:
"
#444
"
,
"
NODE_SUBTEXT_SIZE
"
:
12
,
"
NODE_DEFAULT_COLOR
"
:
"
#F7F7F7
"
,
"
NODE_DEFAULT_BGCOLOR
"
:
"
#F5F5F5
"
,
"
NODE_DEFAULT_BOXCOLOR
"
:
"
#CCC
"
,
"
NODE_DEFAULT_SHAPE
"
:
"
box
"
,
"
NODE_BOX_OUTLINE_COLOR
"
:
"
#000
"
,
"
DEFAULT_SHADOW_COLOR
"
:
"
rgba(0,0,0,0.1)
"
,
"
DEFAULT_GROUP_FONT
"
:
24
,
"
WIDGET_BGCOLOR
"
:
"
#D4D4D4
"
,
"
WIDGET_OUTLINE_COLOR
"
:
"
#999
"
,
"
WIDGET_TEXT_COLOR
"
:
"
#222
"
,
"
WIDGET_SECONDARY_TEXT_COLOR
"
:
"
#555
"
,
"
LINK_COLOR
"
:
"
#4CAF50
"
,
"
EVENT_LINK_COLOR
"
:
"
#FF9800
"
,
"
CONNECTING_LINK_COLOR
"
:
"
#2196F3
"
,
},
"
comfy_base
"
:
{
"
fg-color
"
:
"
#222
"
,
"
bg-color
"
:
"
#FFF
"
,
"
comfy-menu-bg
"
:
"
#F5F5F5
"
,
"
comfy-input-bg
"
:
"
#C9C9C9
"
,
"
input-text
"
:
"
#222
"
,
"
descrip-text
"
:
"
#444
"
,
"
drag-text
"
:
"
#555
"
,
"
error-text
"
:
"
#F44336
"
,
"
border-color
"
:
"
#CCC
"
}
},
},
"
solarized
"
:
{
"
id
"
:
"
solarized
"
,
"
name
"
:
"
Solarized
"
,
...
...
@@ -116,7 +169,7 @@ const colorPalettes = {
const
id
=
"
Comfy.ColorPalette
"
;
const
idCustomColorPalettes
=
"
Comfy.CustomColorPalettes
"
;
const
defaultColorPaletteId
=
"
palette_1
"
;
const
defaultColorPaletteId
=
"
dark
"
;
const
els
=
{}
// const ctxMenu = LiteGraph.ContextMenu;
app
.
registerExtension
({
...
...
web/style.css
View file @
eae159eb
...
...
@@ -32,8 +32,8 @@ body {
}
.comfy-multiline-input
{
background-color
:
var
(
--
bg-color
);
color
:
var
(
--
fg-color
);
background-color
:
var
(
--
comfy-input-bg
);
color
:
var
(
--
input-text
);
overflow
:
hidden
;
overflow-y
:
auto
;
padding
:
2px
;
...
...
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