skinparam shadowing fills in partitions and similar spaces dark grey

0 votes
asked Apr 20 in Bug by WD83 (160 points)

Enabling shadowing with the new default skin can cause unexpected regions to be filled in with shadow.

This planuml snippet:

@startuml
skinparam shadowing true
(X)
partition "Graceful Cleanup " {
  :Close sockets;
  :Do other things;
  :Log shutdown;
}
end
@enduml

Causes the entire partition "Graceful Cleanup" as well as the entire end symbol (circle with X in it) to be filled in dark grey.

1 Answer

0 votes
answered Apr 21 by The-Lu (44,040 points)

Hello W.,

There are some issues (only for PNG output), from:

A possible workaround is to add some style directive, as:

@startuml
<style>
partition {
  BackgroundColor white
}
end {
  BackgroundColor white
}
</style>
skinparam shadowing true
(X)
partition "Graceful Cleanup " {
  :Close sockets;
  :Do other things;
  :Log shutdown;
}
end
@enduml

And see the expected result:

If that can help,
I will check also to propose a Pull Request to PlantUML team, for that.
Regards.

...