sequence-diagram: group or opt boder color and style

0 votes
asked Nov 14, 2019 in Question / help by fengyie007 (120 points)

Can the line color and style of group and opt be modified? like this


commented Nov 14, 2019 by albert (3,520 points)
Probably possible, see for the style settings:

java -Djava.awt.headless=true -jar <plantuml.jar>  -language

(and search for Color together with Sequence)

please post also an example (in the question) of the code you have so far / link to the plantuml webserver ( with the example.

1 Answer

0 votes
answered Jun 19, 2020 by The-Lu (63,000 points)

Hello F.,

Now, with beta-style, we can modify LineColor and group (or opt) style:

root {
  LineColor black
  Shadowing 0
sequenceDiagram {
  participant {
    BackGroundColor white
    LineThickness 1
  group {
    LineThickness 1
    LineColor maroon
    LineStyle 3
    padding 50
    margin 50
  groupHeader {
    FontStyle plain
    BackGroundColor pink
    LineColor maroon
    LineStyle 3
    padding 10
    margin 10

Here is the result:

[Click to see on the PlantUML online server]

And to compare, here is the same without any style:

[Click to see...]

If that can help,

commented Jan 7, 2021 by anonymous

Yes, Adding style directly solved the issue.


fengyie007: many thanks