mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
Merge pull request #174 from mateuswetah/master
Adds NODE_SELECTED_TITLE_COLOR and NODE_BOX_OUTLINE_COLOR
This commit is contained in:
5376
build/litegraph.js
5376
build/litegraph.js
File diff suppressed because it is too large
Load Diff
11787
build/litegraph.min.js
vendored
11787
build/litegraph.min.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -24,6 +24,7 @@
|
||||
NODE_COLLAPSED_RADIUS: 10,
|
||||
NODE_COLLAPSED_WIDTH: 80,
|
||||
NODE_TITLE_COLOR: "#999",
|
||||
NODE_SELECTED_TITLE_COLOR: "#FFF",
|
||||
NODE_TEXT_SIZE: 14,
|
||||
NODE_TEXT_COLOR: "#AAA",
|
||||
NODE_SUBTEXT_SIZE: 12,
|
||||
@@ -31,13 +32,14 @@
|
||||
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",
|
||||
WIDGET_BGCOLOR: "#222",
|
||||
WIDGET_OUTLINE_COLOR: "#666",
|
||||
WIDGET_TEXT_COLOR: "#DDD",
|
||||
WIDGET_SECONDARY_TEXT_COLOR: "#999",
|
||||
|
||||
LINK_COLOR: "#9A9",
|
||||
EVENT_LINK_COLOR: "#A86",
|
||||
@@ -7964,7 +7966,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
var title = String(node.getTitle());
|
||||
if (title) {
|
||||
if (selected) {
|
||||
ctx.fillStyle = "white";
|
||||
ctx.fillStyle = LiteGraph.NODE_SELECTED_TITLE_COLOR;
|
||||
} else {
|
||||
ctx.fillStyle =
|
||||
node.constructor.title_text_color ||
|
||||
@@ -8067,7 +8069,7 @@ LGraphNode.prototype.executeAction = function(action)
|
||||
Math.PI * 2
|
||||
);
|
||||
}
|
||||
ctx.strokeStyle = "#FFF";
|
||||
ctx.strokeStyle = LiteGraph.NODE_BOX_OUTLINE_COLOR;
|
||||
ctx.stroke();
|
||||
ctx.strokeStyle = fgcolor;
|
||||
ctx.globalAlpha = 1;
|
||||
|
||||
Reference in New Issue
Block a user