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.

It is still would be useful to style partitions in activity-beta diagrams with skinparam

0 votes
In order not to create a duplicated question
asked Jul 12, 2015 by bond007 (650 points)
When you set
skinparam defaultFontName <fontname> ...
everything seems to change except for the font of the label for the partition. I've tried specifying the partition font using the new syntax described here and it works fine except for the FontName parameter. it is as if the label's font is hard-coded.
p.s. I love the application.
Normally, "skinparam partitionFontName" should work.
For example http://plantuml.com/plantuml/uml/AyxEp2j8B4hCLG2I9PabcVbvRlbv9Nw9kQaAeI7v1Pc9NCKbG1akkBI2OpAOgkPIKB1AoyytjEQg1Qh9Bm00

Which version of PlantUML are you using ?
8033. I've tried the 'skinparam partitionFontName' in your PlantUML server and it seems to work, though I can't, of course, try it with my local fonts. I've tried the same with 8041, but that is, again a hosted version. I upgraded my local version to the latest version and  it worked fine. Thanks for the help. It looks as the bug was fixed between 8033 and now!

1 Answer

0 votes

Hello,

Today, you can have:

skinparam backgroundColor whiteSmoke
start
partition #lightblue Action {
  :foo1;
}
stop

 

Are you expecting something like this ?

skinparam backgroundColor whiteSmoke
skinparam backgroundPartitionColor lightblue
start
partition Action {
  :foo1;
}
stop

 

Thanks to provide us a text diagram of what you are thinking about, even if your example does not work with the current version of PlantUML. Thanks!

answered Jul 12, 2015 by plantuml (126,730 points)
edited Jul 12, 2015 by plantuml
Than you very much! It works.

For consistency it would be perfect to have all relevant parameters of elements styleable without a separate table of styleable parameters in the PlantUML specification.
For example: If a "package" element is styleable, so a "partition" element is implicitly styleable the same way.
And it would be great to change font of a partition too
I'd like to change the border thickness, the border color the font color and the font size of this nice partition element. Best regards, DaRolla
Ok.
With last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
You can have :
@startuml
skinparam partition {
    BackgroundColor lightblue
    BorderColor green
    BorderThickness 4
    FontSize 20
    FontColor yellow
}
start
partition Action {
  :foo1;
}
stop
@enduml
Is this what you are expecting ?
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...