Style and Skinparam defaults are different for some deployment diagram shapes

0 votes
asked Feb 24, 2021 in Question / help by Martin (8,360 points)
edited Feb 25, 2021 by Martin

Without STYLE, some Deployment diagram shapes have black borders and some have red borders (I'm curious as to why - are they following a documented standard?). Doc example.

But with STYLE, they are all red.  This means a shape's look can change if you add a STYLE block, even if it should not affect it.  Which is unexpected.

Also some borders are thinner with STYLE (eg rectangle & component) and some borders are thicker (eg actor & entity).

@startuml
label A [
{{
rectangle A
}}
]

label B [
{{
<STYLE>
</STYLE>
rectangle B
}}
]
@enduml

The intention may be to move to a more uniform/crisper look without affecting legacy diagrams; but it would be nice to have that stated as deliberate, so that future questions about this can be pointed at the reason.

(And the title style changes too)

1 Answer

0 votes
answered Mar 1, 2021 by The-Lu (63,920 points)
selected Mar 2, 2021 by Martin
 
Best answer

Hello M.,

If you want to harmonize the two views, you can add or propose a similar patch to 'plantuml.skin' with this default skin for style, as:

<STYLE>
root {
  LineThickness 1.5
  LineColor black
}
actor {
  LineColor #A80036
}
agent {
  LineColor #A80036
}
boundary {
  LineColor #A80036
}
component {
  LineColor #A80036
}
control {
  LineColor #A80036
}
entity {
  LineColor #A80036
}
interface {
  LineColor #A80036
}
collections {
  LineColor #A80036
}
package {
  FontStyle bold
}
queue {
  LineColor #A80036
}
stack {
  LineColor #A80036
}
usecase {
  LineColor #A80036
}
</STYLE>

with that, we observe the expected result:

Regards,
Th.

...