Change color of arrows inside Replace Menu

Hi there,

I would like to change the color of the arrows inside my Custom Replace Menu from this:
pfeile

to this:
pfeile

I rename and color the flows like this:

export function getEntries(element, modeling) {
  return {
    'entry-0': {
      className: 'bpmn-icon-connection',
      label: 'black flow',
      action: () => {
        modeling.setColor(element, {stroke: 'black'});
      }
    },
    'entry-1': {
      className: 'bpmn-icon-connection',
      label: 'blue flow',
      action: () => {
        modeling.setColor(element, {stroke: 'blue'});
      }
    },
    'entry-2': {
      className: 'bpmn-icon-connection',
      label: 'orange flow',
      action: () => {
        modeling.setColor(element, {stroke: 'orange'});
      }
    },
    'entry-3': {
      className: 'bpmn-icon-connection',
      label: ' red flow',
      action: () => {
        modeling.setColor(element, {stroke: 'red'});
      }
    },
    'entry-4': {
      className: 'bpmn-icon-connection',
      label: 'purple flow',
      labelColor: 'blue',
      action: () => {
        modeling.setColor(element, {stroke: 'purple'});
      }
    }
  };
}

Any idea how to do this?

Thanks in advance!

You could combine

with a custom CSS rule

.bpmn-icon-connection-blue {
  color: 'blue';
}
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.