Derive automatically the activation color from the participant?

0 votes
asked Feb 23, 2021 in Wanted features by anonymous

Hi all

Why can't the activation color not be automatically by default be set from the defined participant color?
Would be handy if the red marked "#aquamarine" is not explicitly needed in the example below:

Participant "bar" as bar #aquamarine
foo -> bar: hello
activate bar #aquamarine

1 Answer

0 votes
answered Feb 24, 2021 by chris (1,820 points)
edited Feb 24, 2021 by chris

Can you use stereotypes? Set the activation styling for the stereotype, then use a stereotype annotation on your participant instead of directly the colour. This is also better as you don't have to change the colour everywhere if you change your mind.

I just tried this, nope - but you can use the preprocessor:

commented Feb 24, 2021 by anonymous
Hi chris

Thanks for your answer!
Honestly I don't understand your proposed solution.
Can you pls post the code?

Cheers, Phil
commented Feb 24, 2021 by anonymous

Great, many thanks chris! yes

...