Add files via upload

This commit is contained in:
lum3on
2025-06-07 15:28:43 +02:00
committed by GitHub
parent 141644198c
commit e63f1a5566
+18
View File
@@ -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";
}
}
});