klauer / qtpynodeeditor

Python Qt NodeEditor (qtpy, PyQt5, PySide)
https://klauer.github.io/qtpynodeeditor/
Other
192 stars 54 forks source link

Customize node background color #55

Open laurapons opened 1 year ago

laurapons commented 1 year ago

I'd like to customize the node background color, but there is no style setting to do so (or I missed it). Anyone knows how to do it?

klauer commented 1 year ago

For NodeStyle in the style settings, these "GradientColorN" settings:

            "GradientColor0": "red",
            "GradientColor1": "white",
            "GradientColor2": "blue",
            "GradientColor3": "green",

would give you a rather, er, attractive node background like this:

image