[Sequence] Improve background color of group with RoundCorner

0 votes
asked Aug 23, 2021 in Wanted features by The-Lu (37,840 points)

Hello PlantUML team,

  • Could you improve (bottom and header) background color of group (alt, ...) with RoundCorner, on Sequence diagram?

Here is an example, with scale 2, and big RoundCorner, in order to see the issue (on the bottom and the header of the alt):

@startuml
scale 2
hide footbox
<style>
sequenceDiagram {
    RoundCorner 40
}
</style>

alt #0f0 successful case
    Bob -> Alice: Authentication Accepted
else #00f Another type of failure
   Bob -> Alice: Please repeat
end
@enduml

Regards,
Th.

1 Answer

0 votes
answered Aug 25, 2021 by plantuml (265,360 points)
Many thanks for the report.
This is fixed in last beta http://beta.plantuml.net/plantuml.jar and on the online server.

Tell us if it's not working for you!

Regards,
commented Aug 26, 2021 by The-Lu (37,840 points)

Hello PlantUML team,

It is not fully corrected... wink

In fact, the round corner must be done only for the last alt, not for the intermediate alt...

Here is a full simple example:

<style>
sequenceDiagram {
    RoundCorner 30
}
</style>
alt #00ff0080 successful case
    Bob -> Alice: Authentication Accepted
else #ff000080 Another type of failure
   Bob -> Alice: Please repeat
else #0000ff80 Another type of failure
   Bob -> Alice: Please repeat
else #0000ff80 Another type of failure
   Bob -> Alice: Please repeat
end


Then other question... about alt color... What are the equivalences?...

code
alt #palegreen successful case
    Bob -> Alice: Authentication Accepted
else Another type of failure
   Bob -> Alice: Please repeat
else  Another type of failure
   Bob -> Alice: Please repeat
end
alt #palegreen successful case
    Bob -> Alice: Authentication Accepted
else #palegreen Another type of failure
   Bob -> Alice: Please repeat
else #palegreen Another type of failure
   Bob -> Alice: Please repeat
end
alt #palegreen successful case
    Bob -> Alice: Authentication Accepted
else #white Another type of failure
   Bob -> Alice: Please repeat
else #white Another type of failure
   Bob -> Alice: Please repeat
end
output

Then here is a full example..

Regards,
Th.

...