4 Commits
Author SHA1 Message Date
Gregor Adams 5af095c418 Update README.md 2025-04-29 08:49:03 +02:00
haohaocreatesandsnomiao b9a3b28f9f chore(publish): Add Github Action for Publishing to Comfy Registry (#25)
Co-authored-by: snomiao <snomiao+comfy-pr@gmail.com>
2024-08-20 16:47:53 +02:00
haohaocreatesandsnomiao f6c8efb9f1 chore(pyproject): Add pyproject.toml for Custom Node Registry (#24)
Co-authored-by: snomiao <snomiao+comfy-pr@gmail.com>
2024-08-20 16:47:28 +02:00
PrometheusDante 2910671fed feat: allow more color configs (#28)
Addition of custom coloring options for nodes' color context menu as well as groups' color context menu, allowing to color title and background independently.
2024-08-04 11:49:33 +02:00
4 changed files with 259 additions and 35 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Publish to Comfy registry
on:
workflow_dispatch:
push:
branches:
- main
- master
paths:
- "pyproject.toml"
jobs:
publish-node:
name: Publish Custom Node to registry
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Publish Custom Node
uses: Comfy-Org/publish-node-action@main
with:
## Add your own personal access token to your Github Repository secrets and reference it here.
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
+1
View File
@@ -1,3 +1,4 @@
# DEPRECATED - THIS PROJECT IS NO LONGER MAINTAINED AND WILL NOT RECEIVE ANY UPDATES
# ComfyUI Extensions by Blibla
Chack out Captain: The AI Platform
+222 -35
View File
@@ -277,43 +277,150 @@ app.registerExtension({
const menuRoot = menu.current_submenu.root;
const isGroup = node instanceof LGraphGroup;
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Custom",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
node.bgcolor = event.target.value;
node.color = shadeHexColor(node.bgcolor);
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
if (!isGroup) {
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Custom Title",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
// node.bgcolor = event.target.value;
node.color = shadeHexColor(event.target.value);
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Custom BG",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
node.bgcolor = event.target.value;
// node.color = shadeHexColor(node.bgcolor);
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Custom All",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
node.bgcolor = event.target.value;
node.color = shadeHexColor(node.bgcolor);
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
}
if (isGroup) {
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Color Group",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
node.bgcolor = event.target.value;
node.color = shadeHexColor(node.bgcolor);
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
@@ -327,7 +434,87 @@ app.registerExtension({
},
},
[
"Color all",
"Color All Title",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
node.recomputeInsideNodes();
// node.bgcolor = event.target.value;
node.color = shadeHexColor(event.target.value);
node._nodes.forEach((node_) => {
// node_.bgcolor = node.bgcolor;
node_.color = node.color;
});
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Color All BG",
$el("input", {
type: "color",
value: node.bgcolor,
style: {
position: "absolute",
right: "200%",
},
oninput(event) {
node.recomputeInsideNodes();
node.bgcolor = event.target.value;
// node.color = shadeHexColor(node.bgcolor);
node._nodes.forEach((node_) => {
node_.bgcolor = node.bgcolor;
// node_.color = node.color;
});
// TODO: check if we can adjust this
// node.title_color = getContrastColor(node.bgcolor);
node.setDirtyCanvas(true, true);
},
}),
],
),
]),
);
menuRoot.append(
$el("div.litemenu-entry.submenu", [
$el(
"label",
{
style: {
position: "relative",
overflow: "hidden",
display: "block",
paddingLeft: "4px",
borderLeft: "8px solid #222",
},
},
[
"Color All",
$el("input", {
type: "color",
value: node.bgcolor,
+14
View File
@@ -0,0 +1,14 @@
[project]
name = "blibla-comfyui-extensions"
description = ""
version = "1.0.0"
license = "LICENSE"
[project.urls]
Repository = "https://github.com/blib-la/blibla-comfyui-extensions"
# Used by Comfy Registry https://comfyregistry.org
[tool.comfy]
PublisherId = ""
DisplayName = "blibla-comfyui-extensions"
Icon = ""