Different skinparam for note and participant

0 votes
asked Feb 23, 2022 in Question / help by anonymous

Hi.
I would like have a participant which notes are rectangular, but the participant boxes are rounded.
In this example:

@startuml
skinparam roundcorner 30
participant "main" as main #99FF99
rnote over main: MyNote
@enduml


The note gets rounded, even though I use rnote.
Is it possible to achieve that?
Best Regards.

1 Answer

+1 vote
answered Feb 24, 2022 by Martin (8,360 points)
edited Feb 24, 2022 by Martin

1) Using Skinparam
There does not seem to be a "NoteRoundCorner", but you can set the global and then override the participant like this:

skinparam RoundCorner 0
skinparam ParticipantRoundCorner 30

2) Using STYLE (the replacement for Skinparam):

<STYLE>
note {
roundcorner 0
}
participant {
roundcorner 30
}
</STYLE>

commented Feb 24, 2022 by Tom

The STYLE made it.
Thank you very much!

smiley

...