How to set default arrow/edge color in deployment?

0 votes
asked 1 day ago in Question / help by Bastian

Hello,

how can I set the default color for all arrows/edges in a deployment diagram? I can change the color directly for each arrow, but I cannot set it with skinparam globally.

skinparam rectangle {
BorderColor #FF0000
ArrowColor #00FF00
}

agent a
rectangle b

a -[#0000FF]-> b
b -> a

The arrow from b to a is still in default color, not in #00FF00.

Thanks for your help.

1 Answer

0 votes
answered 22 hours ago by albert (2,720 points)

I think there is a misunderstanding regarding the skinparam (as far as my knowledge go). The skinparam rectangle is valid for the rectangle only but not for the connection elements. When using the following I think you get what you want to have:

@startuml
skinparam rectangle {
  BorderColor #FF0000
}
skinparam     ArrowColor #00FF00

    agent a
    rectangle b

    a -[#0000FF]-> b
    b -> a
@enduml

commented 22 hours ago by Bastian
@albert

Thank you, it's working now.
...