Activity Diagram: set border color for Partition

0 votes
asked Jan 12, 2013 in Wanted features by anonymous
Currently partitions in activity diagram has dark black border and there does not seem to be a way to set the partition color in either skinparam or in partition statement.   It would be a very useful to be able to set the border color for partiton and possible the font color as well in skin param like "partitionBorder #AAAAAA" and "partitionColor #FFFF00".

1 Answer

0 votes
answered Jan 15, 2013 by plantuml (279,680 points)

This is not very consistent, and not docummented, but you can do that:

skinparam packageBorderColor red
skinparam packageBackgroundColor yellow

partition Conductor {
  (*) --> "Climbs on Platform"
  --> === S1 ===
  --> Bows
}

 

Next PlantUML version will also allow partitionBorderColor and partitionBackgroundColor which is more logical for activity diagrams

commented Jan 16, 2013 by anonymous
I think it would be useful to define a color for a particular partition?
commented Jan 17, 2013 by plantuml (279,680 points)
You can use the following syntax to change the background color of a particular partition:

partition Conductor #red {
  (*) --> "Climbs on Platform"
  --> === S1 ===
  --> Bows
}

But you cannot change the border color of a particular partition.
This would be easy to implement, but I need suggestion for consistent and simple syntax idea...
...