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
6aae1f49
Commit
6aae1f49
authored
May 01, 2023
by
EllangoK
Browse files
style context menu
fix graphdialog background, and palette template
parent
b04e16ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
6 deletions
+45
-6
web/extensions/core/colorPalette.js
web/extensions/core/colorPalette.js
+17
-0
web/style.css
web/style.css
+28
-6
No files found.
web/extensions/core/colorPalette.js
View file @
6aae1f49
...
@@ -232,10 +232,27 @@ app.registerExtension({
...
@@ -232,10 +232,27 @@ app.registerExtension({
"
name
"
:
"
My Color Palette
"
,
"
name
"
:
"
My Color Palette
"
,
"
colors
"
:
{
"
colors
"
:
{
"
node_slot
"
:
{
"
node_slot
"
:
{
},
"
litegraph_base
"
:
{
},
"
comfy_base
"
:
{
}
}
}
}
};
};
// Copy over missing keys from default color palette
const
defaultColorPalette
=
colorPalettes
[
defaultColorPaletteId
];
for
(
const
key
in
defaultColorPalette
.
colors
.
litegraph_base
)
{
if
(
!
colorPalette
.
colors
.
litegraph_base
[
key
])
{
colorPalette
.
colors
.
litegraph_base
[
key
]
=
""
;
}
}
for
(
const
key
in
defaultColorPalette
.
colors
.
comfy_base
)
{
if
(
!
colorPalette
.
colors
.
comfy_base
[
key
])
{
colorPalette
.
colors
.
comfy_base
[
key
]
=
""
;
}
}
return
completeColorPalette
(
colorPalette
);
return
completeColorPalette
(
colorPalette
);
};
};
...
...
web/style.css
View file @
6aae1f49
...
@@ -257,8 +257,11 @@ button.comfy-queue-btn {
...
@@ -257,8 +257,11 @@ button.comfy-queue-btn {
}
}
}
}
/* Input popup */
.graphdialog
{
.graphdialog
{
min-height
:
1em
;
min-height
:
1em
;
background-color
:
var
(
--comfy-menu-bg
);
}
}
.graphdialog
.name
{
.graphdialog
.name
{
...
@@ -282,18 +285,37 @@ button.comfy-queue-btn {
...
@@ -282,18 +285,37 @@ button.comfy-queue-btn {
border-radius
:
12px
0
0
12px
;
border-radius
:
12px
0
0
12px
;
}
}
/* Context menu */
.litegraph
.litemenu-entry.has_submenu
{
.litegraph
.litemenu-entry.has_submenu
{
position
:
relative
;
position
:
relative
;
padding-right
:
20px
;
padding-right
:
20px
;
}
}
.litemenu-entry.has_submenu
::after
{
.litemenu-entry.has_submenu
::after
{
content
:
">"
;
content
:
">"
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
2px
;
right
:
2px
;
}
}
.litecontextmenu
{
.litecontextmenu
{
z-index
:
9999
!important
;
z-index
:
9999
!important
;
}
}
\ No newline at end of file
.litegraph.litecontextmenu
{
background-color
:
var
(
--comfy-menu-bg
)
!important
;
filter
:
brightness
(
95%
);
color
:
var
(
--input-text
)
!important
;
}
.litegraph.litecontextmenu
.litemenu-entry
:hover:not
(
.disabled
)
:not
(
.separator
)
{
background-color
:
var
(
--comfy-menu-bg
)
!important
;
filter
:
brightness
(
155%
);
color
:
var
(
--input-text
)
!important
;
}
.litegraph.litecontextmenu
.litemenu-entry.submenu
{
background-color
:
var
(
--comfy-menu-bg
)
!important
;
color
:
var
(
--input-text
)
!important
;
}
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