How to give a wireframe a different background color to the activity box it is displayed in

0 votes
asked Oct 4, 2019 in Question / help by bryanmacnz

I am including salt wireframes in an activity diagram as described here: http://plantuml.com/salt .

How can I get the wireframe to have a white background while the activity boxes retain their original background colour as the author has done in the example diagram shown on that page?

In my diagram the wireframe and the activity box share the same background colour as though the wireframe is transparent but I think the example diagram I found looks way better.

Thanks in advance

1 Answer

0 votes
answered Oct 7, 2020 by The-Lu (64,340 points)

Hello B.,

You can use:

skinparam ActivityBackgroundColor Red

and

skinparam BackgroundColor green

With that on PNG, we observe:

@startuml
skinparam ActivityBackgroundColor Red
(*) --> "
{{
skinparam BackgroundColor green
salt
{+
<b>an example
choose one option
()one
()two
[ok]
}
}}
"
--> (*)
@enduml


[See on PlantUML online server]

If that can help,
Regards,
Th.

...