Correcting the color selection in the RS Colorpicker node

This commit is contained in:
Raykosan
2026-07-05 16:25:42 +03:00
parent b607c29dcd
commit 3039a8a8d1
4 changed files with 21 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ IGNORED_MODULES: Set[str] = {'__init__.py'}
REQUIRED_MODULES: Set[str] = set()
PACKAGE_DISPLAY_NAME = "ComfyUI_RaykoStudio"
__version__ = "0.26.0"
__version__ = "0.26.1"
def load_modules():
print(f"🦊 {PACKAGE_DISPLAY_NAME}: Version: {__version__}")
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ComfyUI_RaykoStudio",
"version": "0.26.0",
"version": "0.26.1",
"description": "Set of custom nodes for ComfyUI providing additional image processing capabilities",
"author": "Raykosan",
"license": "Apache License 2.0",
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "ComfyUI_RaykoStudio"
description = "Set of custom nodes for ComfyUI providing additional image processing capabilities"
version = "0.26.0"
version = "0.26.1"
license = { file = "LICENSE" }
dependencies = ["torch", "numpy", "Pillow>=10.0.0", "freetype-py>=2.5.1", "pycairo>=1.29.0", "scipy>=1.10.0"]
+18
View File
@@ -367,11 +367,29 @@ app.registerExtension({
if (node.graph) node.graph.setDirtyCanvas(true, true);
};
let isColorPickerOpen = false;
colorInput.addEventListener("input", (e) => {
const color = normalizeHex(e.target.value);
swatch.style.background = color;
hexInput.value = color.toUpperCase();
isColorPickerOpen = true;
});
colorInput.addEventListener("change", (e) => {
const color = normalizeHex(e.target.value);
swatch.style.background = color;
hexInput.value = color.toUpperCase();
syncOutputs(color);
isColorPickerOpen = false;
});
document.addEventListener("mouseup", () => {
if (isColorPickerOpen) {
const color = normalizeHex(colorInput.value);
syncOutputs(color);
isColorPickerOpen = false;
}
});
hexInput.addEventListener("change", (e) => {