Cards and rectangles have the same formatting.

0 votes
asked Mar 20 in Closed bug by Paula Cristina Vaz
Hello,

I'm trying to format cards and rectangles, but cards keep appearing with the same formatting as rectangles.

Any one can help?

2 Answers

0 votes
answered Mar 20 by plantuml (179,660 points)

What do you mean by "formatting" ?

You can use for example:

@startuml
card card #blue
rectangle rectangle #green
@enduml

commented Mar 21 by anonymous
Hi, sorry... I should be more explicit. :-)

For me, this code:

@startuml
skinparam rectangle {
    FontColor #White
    BackgroundColor #Black
}

skinparam card {
    FontColor #Black
    BackgroundColor #White
}

rectangle rectangle
card card
@enduml

is generating to rectangles with black background and white font. No matter what I put in the card skinparams, the result is always the same.

Is the the normal way or is it a bug?
If it is a bug, will it be fixed soon? :-)

Thanks
commented Mar 21 by plantuml (179,660 points)
Yes, it's a bug.
It's fixed in last beta http://beta.plantuml.net/plantuml.jar
Tell us if it's not working for you!
Regards,
0 votes
answered Apr 3 by anonymous

Hi,

In the last beta version, cards and rectangles are working, but agents are not getting round corners.

@startuml

skinparam shadowing false

skinparam defaultFontSize 16

skinparam card {

FontColor #DarkSlateGray

BorderColor #LightGray

BackGroundColor #LightGray

FontName "Inconsolata"

}

skinparam rectangle {

FontColor #DarkSlateGray

BorderColor #LightGray

BackGroundColor #white

FontName "Roboto"

}

skinparam agent {

RoundCorner 50

BorderColor #e9f4f7

BackGroundColor #e9f4f7

FontColor #383f42

FontName "Inconsolata"

}

skinparam ArrowColor #383f42

skinparam ArrowFontColor #383f42

skinparam ArrowFontSize 14

skinparam LineColor #383f42

skinparam LineFontColor #383f42

skinparam LineFontSize 14

rectangle Outer {

card MyCard

agent "MyAgent" as c10

c10 -ri-> MyCard

}

@enduml

commented Apr 11 by plantuml (179,660 points)
Thanks for the report.
This has been fixed in last beta http://beta.plantuml.net/plantuml.jar
Tell us if you find other issues!
...