change default title color of nodes
This commit is contained in:
@@ -103,6 +103,7 @@ When this error has occurred, please check the network environment.
|
||||
## Update
|
||||
<font size="4">**If the dependency package error after updating, please double clicking ```repair_dependency.bat``` (for Official ComfyUI Protable) or ```repair_dependency_aki.bat``` (for ComfyUI-aki-v1.x) in the plugin folder to reinstall the dependency packages. </font><br />
|
||||
|
||||
* The default title color of nodes is changed to blue-green, and nodes in LayerStyle, LayerColor, LayerMask, LayerUtility, and LayerFilter are distinguished by different colors.
|
||||
* The Object Detector nodes added sort bbox option, which allows sorting from left to right, top to bottom, and large to small, making object selection more intuitive and convenient. The nodes released yesterday has been abandoned, please manually replace it with the new version node (sorry).
|
||||
* Commit [SAM2Ultra](#SAM2Ultra), [SAM2VideoUltra](#SAM2VideoUltra), [ObjectDetectorFL2](#ObjectDetectorFL2), [ObjectDetectorYOLOWorld](#ObjectDetectorYOLOWorld), [ObjectDetectorYOLO8](#ObjectDetectorYOLO8), [ObjectDetectorMask](#ObjectDetectorMask) and [BBoxJoin](#BBoxJoin) nodes.
|
||||
Download models from [BaiduNetdisk](https://pan.baidu.com/s/1xaQYBA6ktxvAxm310HXweQ?pwd=auki) or [huggingface.co/Kijai/sam2-safetensors](https://huggingface.co/Kijai/sam2-safetensors/tree/main) and copy to ```ComfyUI/models/sam2``` folder,
|
||||
@@ -1099,6 +1100,10 @@ Node options:
|
||||
Open the text editing software and find the line starting with "FONT_dir=", after "=", enter the custom folder path name. all font files in this folder will be collected and displayed in the node list during ComfyUI initialization.
|
||||
If the folder set in ini is invalid, the font folder that comes with the plugin will be enabled.
|
||||
|
||||
### <a id="table1">TextImageV2</a>
|
||||

|
||||
|
||||
This node is merged from [heshengtao](https://github.com/heshengtao). The PR modifies the scaling of the image text node based on the TextImage node. The font spacing follows the scaling, and the coordinates are no longer based on the top left corner of the text, but on the center point of the entire line of text. Thank you for the author's contribution.
|
||||
|
||||
### <a id="table1">LaMa</a>
|
||||

|
||||
|
||||
@@ -105,6 +105,8 @@ git clone https://github.com/chflame163/ComfyUI_LayerStyle.git
|
||||
## 更新说明
|
||||
<font size="4">**如果本插件更新后出现依赖包错误,请双击运行插件目录下的```install_requirements.bat```(官方便携包),或 ```install_requirements_aki.bat```(秋叶整合包) 重新安装依赖包。
|
||||
|
||||
* 节点默认标题颜色改为蓝绿色,LayerStyle, LayerColor, LayerMask, LayerUtility 和 LayerFilter 的节点分别用不同的颜色区分。
|
||||
* 合并 [heshengtao](https://github.com/heshengtao) 提交的PR, 添加[TextImageV2](#TextImageV2)节点,修改图片文字节点的缩放,字体间隔跟随缩放,坐标不再以文字左上角,而是整行文字的中心点。感谢作者的贡献。
|
||||
* ObjectDectector节点组增加sort bbox功能, 可按从左到右、从上到下、从大到小排序,选择物体更直观方便。昨天发布的节点已放弃,请手动更换为新版节点(对不起)。
|
||||
* 添加 [SAM2Ultra](#SAM2Ultra), [SAM2VideoUltra](#SAM2VideoUltra), [ObjectDetectorFL2](#ObjectDetectorFL2), [ObjectDetectorYOLOWorld](#ObjectDetectorYOLOWorld), [ObjectDetectorYOLO8](#ObjectDetectorYOLO8), [ObjectDetectorMask](#ObjectDetectorMask) 和 [BBoxJoin](#BBoxJoin)节点。
|
||||
请从[百度网盘](https://pan.baidu.com/s/1xaQYBA6ktxvAxm310HXweQ?pwd=auki) 或者 [huggingface.co/Kijai/sam2-safetensors](https://huggingface.co/Kijai/sam2-safetensors/tree/main)下载全部模型文件并复制到```ComfyUI/models/sam2```文件夹;
|
||||
@@ -1082,6 +1084,9 @@ GradientImage的V2升级版。
|
||||
<sup>*</sup>仅限输入image和mask, 如果强制接入其他类型输入,将导致节点错误。
|
||||
<sup>**</sup>font文件夹在```resource_dir.ini```中定义,这个文件位于插件根目录下, 默认名字是```resource_dir.ini.example```, 初次使用这个文件需将文件后缀改为.ini。用文本编辑软件打开,找到“FONT_dir=”开头的这一行,编辑“=”之后为自定义文件夹路径名。这个文件夹里面所有的.ttf和.otf文件将在ComfyUI初始化时被收集并显示在节点的列表中。如果ini中设定的文件夹无效,将启用插件自带的font文件夹。
|
||||
|
||||
### <a id="table1">TextImageV2</a>
|
||||

|
||||
本节点合并自 [heshengtao](https://github.com/heshengtao) 提交的PR, 在TextImage节点基础上,修改图片文字节点的缩放,字体间隔跟随缩放,坐标不再以文字左上角,而是整行文字的中心点。感谢作者的贡献。
|
||||
|
||||
### <a id="table1">LaMa</a>
|
||||

|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
import { app } from "../../scripts/app.js";
|
||||
|
||||
|
||||
app.registerExtension({
|
||||
name: "ColorOverlay",
|
||||
async nodeCreated(node) {
|
||||
// 判断是否为layer节点
|
||||
if(!node.comfyClass.startsWith("Layer")) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerStyle:")) {
|
||||
node.color = "rgba(20, 95, 121, 0.7)";
|
||||
// node.bgcolor = "rgba(50, 241, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerColor:")) {
|
||||
node.color = "rgba(27, 89, 123, 0.7)";
|
||||
// node.bgcolor = "rgba(43, 209, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerMask:")) {
|
||||
node.color = "rgba(27, 80, 119, 0.7)";
|
||||
// node.bgcolor = "rgba(4, 174, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerUtility:")) {
|
||||
node.color = "rgba(38, 73, 116, 0.7)";
|
||||
// node.bgcolor = "rgba(23, 113, 255, 0.15)";
|
||||
}
|
||||
|
||||
if(node.comfyClass.startsWith("LayerFilter:")) {
|
||||
node.color = "rgba(34, 67, 111, 0.7)";
|
||||
// node.bgcolor = "rgba(19, 85, 255, 0.15)";
|
||||
}
|
||||
|
||||
|
||||
// if(node.comfyClass === "LayerStyle: ColorOverlay"){
|
||||
// node.setSize([600, 120]);
|
||||
// }
|
||||
}
|
||||
});
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "comfyui_layerstyle"
|
||||
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
|
||||
version = "1.0.42"
|
||||
version = "1.0.43"
|
||||
license = "MIT"
|
||||
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "opencv-contrib-python", "pymatting", "segment_anything", "timm", "addict", "yapf", "colour-science", "wget", "mediapipe", "loguru", "typer_config", "fastapi", "rich", "google-generativeai", "diffusers", "omegaconf", "tqdm", "transformers", "kornia", "image-reward", "ultralytics", "blend_modes", "blind-watermark", "qrcode", "pyzbar", "transparent-background", "huggingface_hub", "accelerate", "bitsandbytes", "torchscale", "wandb", "hydra-core", "psd-tools", "inference-cli[yolo-world]", "inference-gpu[yolo-world]", "onnxruntime"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user