Fixed the operation of the RS Prompts node with light themes of the ComfyUI interface

This commit is contained in:
Raykosan
2026-06-19 11:27:29 +03:00
parent e958fa0350
commit 8a21ae1811
4 changed files with 36 additions and 6 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.23.4"
__version__ = "0.23.5"
def load_modules():
print(f"🦊 {PACKAGE_DISPLAY_NAME}: Version: {__version__}")
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ComfyUI_RaykoStudio",
"version": "0.23.4",
"version": "0.23.5",
"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.23.4"
version = "0.23.5"
license = { file = "LICENSE" }
dependencies = ["torch>=1.7.0", "numpy>=1.19.0", "Pillow>=8.0.0", "freetype-py>=2.5.1"]
+33 -3
View File
@@ -6,8 +6,38 @@ let pendingDeleteName = null;
const styleBlock = document.createElement('style');
styleBlock.innerHTML = `
textarea.comfy-multiline-input { opacity: 1 !important; color: #fff !important; text-shadow: none !important; }
textarea.comfy-multiline-input:disabled { opacity: 0.5 !important; color: #888 !important; }
/* Стили ТОЛЬКО для кастомного textarea ноды RSPrompts */
.rs-custom-textarea {
flex: 1;
width: 100%;
min-height: 0;
border: 1px solid #444;
border-radius: 4px;
padding: 8px;
background: #111;
color: #fff;
font-family: system-ui, sans-serif;
font-size: 12px;
resize: none;
outline: none;
box-sizing: border-box;
}
/* Светлая тема ComfyUI (классический UI) */
body.light-mode .rs-custom-textarea {
background: #fff;
color: #000;
border-color: #ccc;
}
/* Светлая тема нового UI ComfyUI */
html[data-theme="light"] .rs-custom-textarea {
background: #fff;
color: #000;
border-color: #ccc;
}
/* Оверлей ожидания */
.rs-waiting-overlay {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
@@ -199,7 +229,7 @@ app.registerExtension({
const customTextarea = document.createElement("textarea");
customTextarea.className = "rs-custom-textarea";
customTextarea.style.cssText = "flex:1;width:100%;min-height:0;border:1px solid #444;border-radius:4px;padding:8px;background:#111;color:#fff;font-family:system-ui,sans-serif;font-size:12px;resize:none;outline:none;box-sizing:border-box;";
customTextarea.style.cssText = "flex:1;width:100%;min-height:0;resize:none;outline:none;box-sizing:border-box;";
customTextarea.placeholder = "Enter your prompt here...";
root.appendChild(customTextarea);