From e63f1a5566992936082bcabde5917a41d318eba2 Mon Sep 17 00:00:00 2001 From: lum3on Date: Sat, 7 Jun 2025 15:28:43 +0200 Subject: [PATCH] Add files via upload --- web/appearance.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 web/appearance.js diff --git a/web/appearance.js b/web/appearance.js new file mode 100644 index 0000000..18485f2 --- /dev/null +++ b/web/appearance.js @@ -0,0 +1,18 @@ +import { app } from "../../scripts/app.js"; + +app.registerExtension({ + name: "ComfyUI-ModelQuantizer.appearance", + async nodeCreated(node) { + // Model Quantization nodes styling - Apply styling + if (node.comfyClass === "ModelToStateDict" || + node.comfyClass === "QuantizeFP8Format" || + node.comfyClass === "QuantizeModel" || + node.comfyClass === "SaveAsSafeTensor" || + node.comfyClass === "ControlNetFP8QuantizeNode" || + node.comfyClass === "ControlNetMetadataViewerNode" || + node.comfyClass === "GGUFQuantizerNode") { + node.color = "#f9918b"; + node.bgcolor = "#a1cfa9"; + } + } +}); \ No newline at end of file