Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Styling failing on conditional blocks in beta 16

0 votes
I have been trying out the new beta 16 (via a dropbox link in a prior question), and it seems to have broken styling for these repeat loops (but also for if blocks too).
 
Please try this PlantUML for a demonstration:
 
@startuml
skinparam classFontColor black
skinparam shadowing true
hide members 
skinparam padding 15
skinparam activity {
   BackgroundColor #5555ff
   ArrowColor Green
   BorderColor Cyan
}  
start
repeat :foo as starting label;  
  :read data;  
  :generate diagrams;  
backward:This is backward;  
repeat while (more data?)  
 
if (Is daytime?) then (no) 
 : Go To Sleep;
 else (yes)
endif
stop
@enduml
 
I would expect
asked May 6 in bug by tex (330 points)

1 Answer

+1 vote
 
Best answer

We have recently added a new setting for diamond, so you should use:

@startuml
skinparam classFontColor black
skinparam shadowing true
hide members
skinparam padding 15
skinparam activity {
   BackgroundColor #5555ff
   BorderColor Cyan
   DiamondBackgroundColor #5555ff
   DiamondBorderColor Cyan
   ArrowColor Green
}  
start
repeat :foo as starting label;  
  :read data;  
  :generate diagrams;  
backward:This is backward;  
repeat while (more data?)  
 
if (Is daytime?) then (no)
 : Go To Sleep;
 else (yes)
endif
stop
@enduml

http://www.plantuml.com/plantuml/uml/VP4nRiCm34LtdO90btZiaCKPcZP5WixD1MYBjeL8ea4fDOoYTozb9q26ee86wVtFBnBQfuoIhy6RT75nHC40hSUKZXppWJqBD1xRouES1hGykTX3bYkPmLc2GA4XIV1W6z7QOdhUFa1ii_joUOPl0m1l6jmBNwDTNthQwkgwHMAn92i-p1WBUtSOEDf_gkwEFufVHNXQqKc8ela1xROCRuH6mWnrnmoOO86bSuyD-PtQ06eXj60nu-tUKoJ1J60TzZfPAhpHpYOKMvy7bq3t7HJnzieqE4-m2IoqvBrK9T2u3ZOVIScSNI25UQ08cyYLgZMS6CuCdvvet1aWdpHYfbGPYjPrEWUFPgzd_SXV

We've noticed a bug with the padding in your example : we're going to have a look on it.

answered May 6 by plantuml (126,850 points)
selected May 6 by tex
Thanks for the fast response and the information on the DiamondBackgroundColor and DiamondBorderColor . Yes, sorry, I forgot to mention the padding bug too (which I also noticed).
No problem!
This should be fixed with last beta
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0
Thanks again for the report!
This notification helps...please dont forgot to add the new Diamond colors to the manual.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...