Example right in help is buggy: wrong color

0 votes
asked Mar 16, 2021 in Bug by icegood (140 points)
In the example 

@startuml

skinparam interface {
  backgroundColor RosyBrown
  borderColor orange
}

skinparam component {
  FontSize 13
  BackgroundColor<<Apache>> Red
  BorderColor<<Apache>> #FF6655
  FontName Courier
  BorderColor black
  BackgroundColor gold
  ArrowFontName Impact
  ArrowColor #FF6655
  ArrowFontColor #777777
}

() "Data Access" as DA

DA - [First Component]
[First Component] ..> () HTTP : use
HTTP - [Web Server] << Apache >>

@enduml
[Web Server] is supposed to be red. While actually, it is gold

Next modification works:

@startuml

skinparam component {
  BackgroundColor<<>> gold
  BackgroundColor<<Apache>> Red
}

() "Data Access" as DA

DA - [First Component]
[First Component] ..> () HTTP : use

[Web Server] <<Apache>> as ws

HTTP - ws

@enduml

1 Answer

+1 vote
answered Mar 17, 2021 by The-Lu (64,760 points)

Hello I.,

You are right about your modified example.
FYI, the stereotype notation:

HTTP - [Web Server] <<Apache>>

is only for link, arrow between HTTP and Web Server (and not for component or object).

While the notation:

[Apache WS] <<Apache>>

is for specific for component or element.

See a complete example (using CSS style) here:

If that can help,
Regards,
Th.

...