mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2025-12-22 21:00:49 +08:00
better color palette
This commit is contained in:
parent
4e88059785
commit
ac40b23ea0
@ -16,7 +16,7 @@ sys.path.append('../..')
|
|||||||
from torchvision.datasets.utils import download_url
|
from torchvision.datasets.utils import download_url
|
||||||
|
|
||||||
# ensure .js
|
# ensure .js
|
||||||
print("### Loading: ComfyUI-Manager (V0.7.1)")
|
print("### Loading: ComfyUI-Manager (V0.7.2)")
|
||||||
|
|
||||||
comfy_path = os.path.dirname(folder_paths.__file__)
|
comfy_path = os.path.dirname(folder_paths.__file__)
|
||||||
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')
|
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')
|
||||||
|
|||||||
@ -465,6 +465,16 @@
|
|||||||
"install_type": "git-clone",
|
"install_type": "git-clone",
|
||||||
"description": "Modularized version of Disco Diffusion for use with ComfyUI."
|
"description": "Modularized version of Disco Diffusion for use with ComfyUI."
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"author": "space-nuko",
|
||||||
|
"title": "OpenPose Editor",
|
||||||
|
"reference": "https://github.com/space-nuko/ComfyUI-OpenPose-Editor",
|
||||||
|
"files": [
|
||||||
|
"https://github.com/space-nuko/ComfyUI-OpenPose-Editor"
|
||||||
|
],
|
||||||
|
"install_type": "git-clone",
|
||||||
|
"description": "A port of the openpose-editor extension for stable-diffusion-webui. NOTE: Requires <a href='https://github.com/comfyanonymous/ComfyUI/pull/711'>this ComfyUI patch</a> to work correctly"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"author": "Nourepide",
|
"author": "Nourepide",
|
||||||
"title": "Allor Plugin",
|
"title": "Allor Plugin",
|
||||||
|
|||||||
@ -346,6 +346,7 @@ class CustomNodesInstaller extends ComfyDialog {
|
|||||||
installBtn3 = document.createElement('button');
|
installBtn3 = document.createElement('button');
|
||||||
installBtn3.innerHTML = 'Enable';
|
installBtn3.innerHTML = 'Enable';
|
||||||
installBtn3.style.backgroundColor = 'blue';
|
installBtn3.style.backgroundColor = 'blue';
|
||||||
|
installBtn3.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn3);
|
this.install_buttons.push(installBtn3);
|
||||||
|
|
||||||
installBtn.innerHTML = 'Uninstall';
|
installBtn.innerHTML = 'Uninstall';
|
||||||
@ -355,11 +356,13 @@ class CustomNodesInstaller extends ComfyDialog {
|
|||||||
installBtn2 = document.createElement('button');
|
installBtn2 = document.createElement('button');
|
||||||
installBtn2.innerHTML = 'Update';
|
installBtn2.innerHTML = 'Update';
|
||||||
installBtn2.style.backgroundColor = 'blue';
|
installBtn2.style.backgroundColor = 'blue';
|
||||||
|
installBtn2.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn2);
|
this.install_buttons.push(installBtn2);
|
||||||
|
|
||||||
installBtn3 = document.createElement('button');
|
installBtn3 = document.createElement('button');
|
||||||
installBtn3.innerHTML = 'Disable';
|
installBtn3.innerHTML = 'Disable';
|
||||||
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
||||||
|
installBtn3.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn3);
|
this.install_buttons.push(installBtn3);
|
||||||
|
|
||||||
installBtn.innerHTML = 'Uninstall';
|
installBtn.innerHTML = 'Uninstall';
|
||||||
@ -369,6 +372,7 @@ class CustomNodesInstaller extends ComfyDialog {
|
|||||||
installBtn3 = document.createElement('button');
|
installBtn3 = document.createElement('button');
|
||||||
installBtn3.innerHTML = 'Disable';
|
installBtn3.innerHTML = 'Disable';
|
||||||
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
||||||
|
installBtn3.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn3);
|
this.install_buttons.push(installBtn3);
|
||||||
|
|
||||||
installBtn.innerHTML = 'Uninstall';
|
installBtn.innerHTML = 'Uninstall';
|
||||||
@ -377,10 +381,12 @@ class CustomNodesInstaller extends ComfyDialog {
|
|||||||
case 'False':
|
case 'False':
|
||||||
installBtn.innerHTML = 'Install';
|
installBtn.innerHTML = 'Install';
|
||||||
installBtn.style.backgroundColor = 'black';
|
installBtn.style.backgroundColor = 'black';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
installBtn.innerHTML = 'Try Install';
|
installBtn.innerHTML = 'Try Install';
|
||||||
installBtn.style.backgroundColor = 'Gray';
|
installBtn.style.backgroundColor = 'Gray';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(installBtn2 != null) {
|
if(installBtn2 != null) {
|
||||||
@ -415,8 +421,8 @@ class CustomNodesInstaller extends ComfyDialog {
|
|||||||
|
|
||||||
data5.appendChild(installBtn);
|
data5.appendChild(installBtn);
|
||||||
|
|
||||||
dataRow.style.backgroundColor = "#444444";
|
dataRow.style.backgroundColor = "var(--bg-color)";
|
||||||
dataRow.style.color = "White";
|
dataRow.style.color = "var(--fg-color)";
|
||||||
dataRow.style.textAlign = "left";
|
dataRow.style.textAlign = "left";
|
||||||
|
|
||||||
dataRow.appendChild(data1);
|
dataRow.appendChild(data1);
|
||||||
@ -603,41 +609,50 @@ class AlternativesInstaller extends ComfyDialog {
|
|||||||
installBtn3 = document.createElement('button');
|
installBtn3 = document.createElement('button');
|
||||||
installBtn3.innerHTML = 'Enable';
|
installBtn3.innerHTML = 'Enable';
|
||||||
installBtn3.style.backgroundColor = 'blue';
|
installBtn3.style.backgroundColor = 'blue';
|
||||||
|
installBtn3.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn3);
|
this.install_buttons.push(installBtn3);
|
||||||
|
|
||||||
installBtn.innerHTML = 'Uninstall';
|
installBtn.innerHTML = 'Uninstall';
|
||||||
installBtn.style.backgroundColor = 'red';
|
installBtn.style.backgroundColor = 'red';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
break;
|
break;
|
||||||
case 'Update':
|
case 'Update':
|
||||||
installBtn2 = document.createElement('button');
|
installBtn2 = document.createElement('button');
|
||||||
installBtn2.innerHTML = 'Update';
|
installBtn2.innerHTML = 'Update';
|
||||||
installBtn2.style.backgroundColor = 'blue';
|
installBtn2.style.backgroundColor = 'blue';
|
||||||
|
installBtn2.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn2);
|
this.install_buttons.push(installBtn2);
|
||||||
|
|
||||||
installBtn3 = document.createElement('button');
|
installBtn3 = document.createElement('button');
|
||||||
installBtn3.innerHTML = 'Disable';
|
installBtn3.innerHTML = 'Disable';
|
||||||
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
||||||
|
installBtn3.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn3);
|
this.install_buttons.push(installBtn3);
|
||||||
|
|
||||||
installBtn.innerHTML = 'Uninstall';
|
installBtn.innerHTML = 'Uninstall';
|
||||||
installBtn.style.backgroundColor = 'red';
|
installBtn.style.backgroundColor = 'red';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
break;
|
break;
|
||||||
case 'True':
|
case 'True':
|
||||||
installBtn3 = document.createElement('button');
|
installBtn3 = document.createElement('button');
|
||||||
installBtn3.innerHTML = 'Disable';
|
installBtn3.innerHTML = 'Disable';
|
||||||
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
installBtn3.style.backgroundColor = 'MediumSlateBlue';
|
||||||
|
installBtn3.style.color = 'white';
|
||||||
this.install_buttons.push(installBtn3);
|
this.install_buttons.push(installBtn3);
|
||||||
|
|
||||||
installBtn.innerHTML = 'Uninstall';
|
installBtn.innerHTML = 'Uninstall';
|
||||||
installBtn.style.backgroundColor = 'red';
|
installBtn.style.backgroundColor = 'red';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
break;
|
break;
|
||||||
case 'False':
|
case 'False':
|
||||||
installBtn.innerHTML = 'Install';
|
installBtn.innerHTML = 'Install';
|
||||||
installBtn.style.backgroundColor = 'black';
|
installBtn.style.backgroundColor = 'black';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
installBtn.innerHTML = 'Try Install';
|
installBtn.innerHTML = 'Try Install';
|
||||||
installBtn.style.backgroundColor = 'Gray';
|
installBtn.style.backgroundColor = 'Gray';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(installBtn2 != null) {
|
if(installBtn2 != null) {
|
||||||
@ -674,8 +689,8 @@ class AlternativesInstaller extends ComfyDialog {
|
|||||||
data6.appendChild(installBtn);
|
data6.appendChild(installBtn);
|
||||||
}
|
}
|
||||||
|
|
||||||
dataRow.style.backgroundColor = "#444444";
|
dataRow.style.backgroundColor = "var(--bg-color)";
|
||||||
dataRow.style.color = "White";
|
dataRow.style.color = "var(--fg-color)";
|
||||||
dataRow.style.textAlign = "left";
|
dataRow.style.textAlign = "left";
|
||||||
|
|
||||||
dataRow.appendChild(data1);
|
dataRow.appendChild(data1);
|
||||||
@ -856,11 +871,13 @@ class ModelInstaller extends ComfyDialog {
|
|||||||
case 'True':
|
case 'True':
|
||||||
installBtn.innerHTML = 'Installed';
|
installBtn.innerHTML = 'Installed';
|
||||||
installBtn.style.backgroundColor = 'green';
|
installBtn.style.backgroundColor = 'green';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
installBtn.disabled = true;
|
installBtn.disabled = true;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
installBtn.innerHTML = 'Install';
|
installBtn.innerHTML = 'Install';
|
||||||
installBtn.style.backgroundColor = 'black';
|
installBtn.style.backgroundColor = 'black';
|
||||||
|
installBtn.style.color = 'white';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -872,8 +889,8 @@ class ModelInstaller extends ComfyDialog {
|
|||||||
|
|
||||||
data_install.appendChild(installBtn);
|
data_install.appendChild(installBtn);
|
||||||
|
|
||||||
dataRow.style.backgroundColor = "#444444";
|
dataRow.style.backgroundColor = "var(--bg-color)";
|
||||||
dataRow.style.color = "White";
|
dataRow.style.color = "var(--fg-color)";
|
||||||
dataRow.style.textAlign = "left";
|
dataRow.style.textAlign = "left";
|
||||||
|
|
||||||
dataRow.appendChild(data1);
|
dataRow.appendChild(data1);
|
||||||
@ -949,7 +966,7 @@ class ManagerMenuDialog extends ComfyDialog {
|
|||||||
|
|
||||||
const res =
|
const res =
|
||||||
[
|
[
|
||||||
$el("tr.td", {width:"100%"}, [$el("font", {size:6, color:"white"}, [`Manager Menu`])]),
|
$el("tr.td", {width:"100%"}, [$el("font", {size:6, color:"white"}, [`ComfyUI Manager Menu`])]),
|
||||||
$el("br", {}, []),
|
$el("br", {}, []),
|
||||||
$el("div", {}, [this.local_mode_checkbox, checkbox_text]),
|
$el("div", {}, [this.local_mode_checkbox, checkbox_text]),
|
||||||
$el("br", {}, []),
|
$el("br", {}, []),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user