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.

skinparam for the background color of the actionDiamond

0 votes
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?
asked Apr 12 in Wanted features by ddecock (140 points)

1 Answer

0 votes
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.

Thanks!
answered Apr 13 by plantuml (118,230 points)
Hi,

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

Example:

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:

#LightYellow:repeat
    :**ANALYSE** customer needs;
    -> **1**;
    |Operations|
    #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 ;)

Thanks!
Ok, thanks for the explanation.
With last beta
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0
You can have:
@startuml
skinparam activityDiamond {
    BackgroundColor red
    BorderColor blue
    FontSize 24
}
start
:tekst1;
if (teks2) then (yes)
 :tekst1;
else (no)
 :tekst1;
endif
:tekst1;
stop
@enduml

Tell us if you find issues!
Perfect! So far, so good!

Great work, thanks!
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...