diff --git a/javascript/ccx-help.png b/javascript/ccx-help.png
new file mode 100644
index 0000000..302e288
Binary files /dev/null and b/javascript/ccx-help.png differ
diff --git a/photoshop/src/panels/Main.jsx b/photoshop/src/panels/Main.jsx
index daab280..f109f2b 100644
--- a/photoshop/src/panels/Main.jsx
+++ b/photoshop/src/panels/Main.jsx
@@ -45,9 +45,10 @@ class WebPageList extends React.Component {
}
render() {
+ const queueSize = Object.values(this.state.pageInstances || {})[0]?.queueSize || 0;
return (
<>
- {TEXTS('webpage-list')}
+ {TEXTS('webpage-list')} {ComfyConnection.instance?.serverType != 'comfy' ? '' : `(${TEXTS('Queue:')} ${queueSize})`}
{
Object.keys(this.state.pageInstances).map((sid) => {
@@ -67,12 +68,6 @@ class WebPageList extends React.Component {
{item.progress ? `${item.progress}% - ` : ""}({item.ssid}) {item.error ? item.error.replace('sdppp PS side error:', '') : item.title}
- {item.layerNameEntries.filter(entry => entry.startsWith('$sd-ppp$/')).length ? {
- const validLayersName = item.layerNameEntries.filter(entry => entry.startsWith('$sd-ppp$/'));
- validLayersName.forEach(layerName => {
-
- });
- }}>Init Layers : ''}
{ ComfyConnection.instance?.pageInstanceRun(item.sid) }}>▶
diff --git a/sdppp_python/apis.py b/sdppp_python/apis.py
index 2a7e8df..fd427ac 100644
--- a/sdppp_python/apis.py
+++ b/sdppp_python/apis.py
@@ -95,7 +95,7 @@ def registerSocketEvents(sdppp, sio):
await ProtocolPhotoshop.send_images(backendInstance,
document_identify=document['identify'],
layer_identifies=payload['layer_identifies'],
- bounds_identify=payload['bounds_identify'],
+ bounds_identifies=payload['bounds_identifies'],
image_urls=payload['image_urls']
)
diff --git a/sdppp_python/comfy/nodes.py b/sdppp_python/comfy/nodes.py
index b05fecd..fa136a4 100644
--- a/sdppp_python/comfy/nodes.py
+++ b/sdppp_python/comfy/nodes.py
@@ -26,6 +26,9 @@ def check_linked_in_prompt(prompt, unique_id, name):
def sdppp_get_prompt_item_from_list(l, index):
if not isinstance(l, list):
return l
+ if len(l) <= index:
+ index = 0
+
if len(l) == 0:
return ''
elif len(l) == 1:
diff --git a/sdppp_python/comfy/nodes_legacy.py b/sdppp_python/comfy/nodes_legacy.py
index 5cc1d60..6e851c4 100644
--- a/sdppp_python/comfy/nodes_legacy.py
+++ b/sdppp_python/comfy/nodes_legacy.py
@@ -249,7 +249,7 @@ def define_comfyui_nodes_legacy(sdppp):
document_identify=document['identify'],
image_blobs=[p['image_blob'] for p in params],
layer_identifies=[p['layer_identify'] for p in params],
- bounds_identify=[p['bound_identify'] for p in params]
+ bounds_identifies=[p['bound_identify'] for p in params]
), True)
return (None,)
diff --git a/sdppp_python/protocols/photoshop.py b/sdppp_python/protocols/photoshop.py
index 453b796..e8667c1 100644
--- a/sdppp_python/protocols/photoshop.py
+++ b/sdppp_python/protocols/photoshop.py
@@ -21,11 +21,11 @@ class ProtocolPhotoshop:
return result
@classmethod
- async def send_images(cls, backend_instance, document_identify, layer_identifies, bounds_identify, image_urls=[], image_blobs=[]):
+ async def send_images(cls, backend_instance, document_identify, layer_identifies, bounds_identifies, image_urls=[], image_blobs=[]):
result = await protocol_call(backend_instance, 's_send_images', data={
'document_identify': document_identify,
'layer_identifies': layer_identifies,
- 'bounds_identify': bounds_identify,
+ 'bounds_identifies': bounds_identifies,
'image_urls': image_urls,
'image_blobs': image_blobs
})
diff --git a/style.css b/style.css
index 4c7f90c..76a94af 100644
--- a/style.css
+++ b/style.css
@@ -52,7 +52,7 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
- background-color: #ffffff;
+ background-color: var(--body-background-fill);
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
@@ -100,6 +100,7 @@
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
+ color: var(--body-text-color);
}
.sdppp-confirm-button {
@@ -116,7 +117,6 @@
top: 10px;
right: 10px;
background-color: #f44336;
- color: white;
}
.sdppp-close-button:hover {
@@ -132,7 +132,7 @@
.sdppp-page-id {
font-size: 14px;
- color: #333;
+ color: unset;
font-weight: bold;
text-align: center;
width: 100%;