Default Button color

In Vision, on the Button component there is a property called “Default Button” which activates the button when the enter key is pressed. When this property is on the button’s background color is tinted blue. So, a white button is blue, a yellow button is green, etc. In my case I want a yellow button, but cannot find a way to achieve that.

Is there a way to override this? Is it a bug? I’m not sure exactly when it was introduced, but it was recent. I am currently on 8.1.10.

1 Like
from com.inductiveautomation.ignition.client import IgnitionLookAndFeel
from de.javasoft.plaf.synthetica.util.Synthetica2DUtils import BlendMode 

IgnitionLookAndFeel.setBlendMode(button, BlendMode.LUMINOSITY)

You can try this. There's a variety of different BlendModes, but LUMINOSITY is probably closest to what you want:

Blend modes:

        ALPHA,
        COLOR_BURN,
        LUMINOSITY,
        MULTIPLY,
        OVERLAY,
        SOFT_BURN,
        SOFT_LIGHT,
        LINEAR_LIGHT;