skinparam for the background color of the actionDiamond

0 votes
asked Apr 12, 2017 in Wanted features by ddecock (140 points)
Is there also a skinparam for the background color of the actionDiamond?

It currently is the same as the activityBackgroundColor, but we normally use Yellow for the conditions, and another color for the actions.

Thanks for your great work!
related to an answer for: skinparam for condition boxes?

1 Answer

0 votes
answered Apr 13, 2017 by plantuml (149,480 points)
No, there are no such setting yet.

Could you post here a simple example of what you are expecting ? It would help us to better understand your need.

commented Apr 13, 2017 by ddecock (140 points)

I was thinking on creating some kind of style sheet for our activity diagrams using the new activity beta syntax.


skinparam activity {
    StartColor GreenYellow
    EndColor Red
    BackgroundColor AliceBlue
    'BorderColor SkyBlue
    BorderColor DarkGrey
    FontSize 24
    FontColor Black

skinparam arrow {
    Color Black
    FontSize 24
    MessageAlign center

skinparam note {
    BackgroundColor LightYellow
    BorderColor Black
    FontSize 18

skinparam activityDiamond {
    BackgroundColor LightYellow
    BorderColor Olive
    FontSize 24

This would make all activityDiamonds yellow with a green border, ....

At the moment, I use this code:

    :**ANALYSE** customer needs;
    -> **1**;
    #LightYellow:if (project requires customisation?) then (no)

This has the following disadvantages:
 - I have to repeat the color every time
 - I can't change the border color
 - It's not easy to play with the color configurations...

As you might have seen in my example, I'm also looking at an alignment option for text belonging to an arrow, but I will create a different ticket for that ;)

commented Apr 13, 2017 by plantuml (149,480 points)
Ok, thanks for the explanation.
With last beta
You can have:
skinparam activityDiamond {
    BackgroundColor red
    BorderColor blue
    FontSize 24
if (teks2) then (yes)
else (no)

Tell us if you find issues!
commented Apr 13, 2017 by ddecock (140 points)
Perfect! So far, so good!

Great work, thanks!