Colors for the Modeler: now Modeler 5.0.0 ready

Hi Community Folks!

I had some troubles with my Spectrum Color Picker Plugin under the new Camunda Modeler. Thanks to the existing ColorPicker example (GitHub - camunda/camunda-modeler-plugin-example: Plugin example for the Camunda Modeler. Use this as a starting point for creating your own plugins.) my plugin is now Modeler 5.0.0 ready.

If you are interested:

Maybe it is also useful for someone else :slight_smile:

3 Likes

I love a good color plugin! Thanks!
Do you store the colour in the XML to align with the standard?

2 Likes

So happy to see this!

I love coloring my BPMN. :slight_smile:

dg

2 Likes

The plugin uses the built-in method “element.setColor()”. It therefore uses the Modeler functionality.

The XML would look like this, for example:

… <bpmndi:BPMNShape id="…" bpmnElement=“Activity_1f1oeka…” bioc:stroke="#0028ff" bioc:fill="#b8c3ff" color:background-color="#b8c3ff" color:border-color="#0028ff"> …

4 Likes