New styling not working for nesting elements

0 votes
asked Feb 1, 2022 in Bug by 1derer (200 points)

Hi.

Take for example, this small diagram using the old formatting commands:

@startuml
'FORMAT
skinparam frameBorderColor Blue
skinparam frameBackgroundcolor LightBlue
skinparam frameShadowing false
skinparam rectangleBorderColor Green
skinparam rectangleBackgroundcolor LightGreen
skinparam rectangleShadowing true
'ELEMENTS
frame Foo5 {
  rectangle Foo6
}
@enduml

If I try it in the new styling format, then the nesting element properties are not rendered at all:

@startuml
'FORMAT
<style>
  frame {
    LineColor Blue
    BackgroundColor LightBlue
    Shadowing 0
  }
  rectangle {
    LineColor Green
    Backgroundcolor LightGreen
    Shadowing 1
  }
</style>
'ELEMENTS
frame Foo5 {
  rectangle Foo6
}
@enduml

So, the frame line is not blue, background is not light blue and the shadow is still showing even though I set it to 0. This happens with other types of diagrams too (i.e.: Deployment, Component, etc.). 

Is the new styling supported already for all kinds of elements in all diagram types? Else, is it possible to make it available? I'm really trying to do without the good ol' SKINPARAM, but this is making it really difficult ;)

Thanks!

1 Answer

+1 vote
answered Feb 1, 2022 by plantuml (295,000 points)
selected Feb 1, 2022 by 1derer
 
Best answer

Thanks for the feedback.
This has been just fixed in last release.

New styling should be working completely now, so please post if you find other issues :-)

commented Feb 1, 2022 by 1derer (200 points)
Great. Thanks! Will test extensively and get back if I find anything weird.
commented Feb 2, 2022 by The-Lu (65,440 points)
Thank you very much, this will fix many of these requests or reported bugs...
asked Feb 2, 2022 in Wanted features by The-Lu (65,440 points) Allow new styling for nested package
...