-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set a custom node color and add it to the list for consistency of node colors #29
Comments
so basically, you want to predefine colors and then select from those instead of having to manually match? |
That would be the dream, but I never found where those are even defined at.
would be amazing to really establish meaningful color conventions |
those seem to be in the source of Liteggraph (that node library). Sadly I'm not really working on the extensions anymore (some changes in my life), so it is unlikely that I will add new features. |
To give more info. It would likely happens here: https://github.com/blib-la/blibla-comfyui-extensions/blob/main/extensions/colors.js#L503-L542 something like const storedColors = window.localStorage.getItem("blibla-storedColors");
const storedColorsArray = storedColors ? JSON.parse(storedColors) : [];
for (const storedColor of storedColorsArray) {
// menuRoot.append( $el("div.litemenu-entry.submenu", [ ...
// here all colors that were stored could be abbed
} and when selecting a coolor the storedKey would need an update const storedColors = window.localStorage.getItem("blibla-storedColors");
const storedColorsArray = storedColors ? JSON.parse(storedColors) : [];
storedColorsArray.push("#bada55");
window.localStorage.setItem("blibla-storedColors", JSON.stringify(storedColorsArray)); |
Now I have chosen a custom color, but after setting it up, I don't know what color I just set up. It's very troublesome. Can add the custom color I just defined to the color list? Thank you.
The text was updated successfully, but these errors were encountered: