Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5af095c418 | ||
|
|
b9a3b28f9f | ||
|
|
f6c8efb9f1 | ||
|
|
2910671fed |
@@ -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,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
@@ -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,
|
||||
|
||||
@@ -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 = ""
|
||||
Reference in New Issue
Block a user