Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

How to set font color inside controling elements in activity2 diagrams

+2 votes
How to set font color inside controlling elements in activity2 diagrams independently from the font color for labels on the arrows next to the controling elements. That is, I have an if or while with dark background color and I want to use white font color, then the labels outside the if and while also get a white color and are not visible anymore.

As far as I am concerned, al labels from if, while, repeat, etc in activity2 diagram should get font identical to that on the arrows.

The font settings inside the if, while and repeat should be identical to the text inside activities or be controlable with an additional setting.
asked Feb 25, 2015 in bug by Pander (860 points)

1 Answer

0 votes
The possibility to configure font/color for activity beta diagrams are indeed somehow limited today.

The real issue here is not the code, but the definition of the syntax. And we are out of inspiration for new skinparam parameters...

What you can do is to post here an example with some suggested skinparams that you would like to have.

If that sounds good to us, we will implement them that way.

Thanks!
answered Feb 26, 2015 by plantuml (112,180 points)
I second Pander's original suggestion: to have the array text colors for the control structure "if/else" texts follow the "activityArrowFontColor" skinparam. Any idea of when it can be implemented? :)
With last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
You can have:

@startuml
skinparam activityArrowFontColor red
start
if (foo) then (foo1)
:bar1;
else (foo2)
:bar2;
endif
@enduml

Note that there is also a ActivityDiamondFontColor setting:
http://plantuml.sourceforge.net/qa/?qa=2792/activity-beta-how-to-set-default-font-color

As we said, we know that all those settings for font colors into activity beta are not always coherent, so do not hesitate to post your ideas and suggestions.

Thanks again!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...