[Activity][Style] Allow full style on diamond (e.g. internal label and external label)

0 votes
asked Sep 11 in Wanted features by The-Lu (31,200 points)

Hello PlantUML team,

  • Could you allow full style on diamond (e.g. internal label and external label), on Activity Diagram?

Question:

  • What is the stylename (SName) for the external diamond label?

Here are some examples:

1/ With Simple Conditional:

@startuml
<style>
activityDiagram {
  MaximumWidth 100
  diamond {
    FontColor green
  }
}
</style>
if (Long long long long long long long long long condition?) then (Long long long long long long long long long yes)
  :Long long long long long long long long long action yes;
else (Long long long long long long long long long no)
  :Long long long long long long long long long action no;
endif
@enduml

→ `MaximumWidth 100` seems to not take in account for internal diamond label and external diamond label

2/ With switch/cases

@startuml

<style>
activityDiagram {
  MaximumWidth 100
  diamond {
    FontColor green
  }
}
</style>
switch (Long long long long condition? )
case ( Long long long long long long long long long case 1)
   :Long long long long long long long long long  1;
case ( Long long long long long long long long long case 2 )
   :Long long long long long long long long long  2;
endswitch
@enduml


→ `MaximumWidth 100` seems to be ignored  for internal diamond label and external diamond label
And also the color `FontColor green` is not taken in account.

Regards.

related to an answer for: prevent text overlap in activity switch

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...