How can I configure the style of the "conditions" nodes in an activity diagram?

0 votes
asked Jul 22, 2021 in Question / help by SuperSaiyanGod (340 points)
I can configure the style of the "steps" nodes by defining the "activity" style, but that doesn't affect the "conditions" nodes (the text within the parentheses following an "if", e.g.). Really annoying.

1 Answer

0 votes
answered Jul 23, 2021 by The-Lu (64,760 points)

Hello S.,

You can use:

- old skinparam:

skinparam activityDiamondBackgroundColor purple

See: 

- or style:

<style>
activityDiagram {
  diamond {
    BackgroundColor #ccf
    LineColor #00FF00
    FontColor green
    FontName arial
    FontSize 15
  }
}
</style>

With that, we observe:

If that can help,
// I can update the doc., with that... //
Regards,
Th.

commented Jul 23, 2021 by SuperSaiyanGod (340 points)

Yeah, that really helps a lot! Thanks! But unfortunately, the "HorizontalAlignment" attribute doesn't apply, what a pity! Is is not supported?

commented Aug 17, 2021 by SuperSaiyanGod (340 points)
And it's also a pity that the style of the conditions cannot be figured "dynamically", like setting the color the same way as the plain nodes. The "#green" syntax doesn't apply to the conditions. Also it is a frustration that I can only configure the style of one branch arrow of a while loop.
...