backgroundColor of swimlane title

0 votes
asked May 31, 2019 in Question / help by csucjh (140 points)
edited Jun 3, 2019 by csucjh

|swinlane1|

:first;

:second;

|swinlane2|

:third;

if (foo) then

:something;

endif

|swinlane1|

:back to swinline1;

|swinlane2|

:back to swinline2;

I want to set the background color for the title, like the one shown here

commented Jun 1, 2019 by albert (3,520 points)
Would be useful to the a reference to the code you used (e.g. through ) as well as the used Plantuml version.

When I understand it correctly you would like to replace the gray color by something else.
commented Jun 3, 2019 by csucjh (140 points)
reshown Jun 4, 2019 by csucjh

|swinlane1|

:first;

:second;

|swinlane2|

:third;

if (foo) then

:something;

endif

|swinlane1|

:back to swinline1;

|swinlane2|

:back to swinline2;

I want to set the background color for the title, like the one shown here

1 Answer

+1 vote
answered Jun 5, 2019 by plantuml (294,960 points)
selected Jun 5, 2019 by csucjh
 
Best answer

Good idea!
Thanks for the suggestion.

So with last beta http://beta.plantuml.net/plantuml.jar
you can now have:

@startuml
skinparam SwimlaneTitleFontColor red
skinparam SwimlaneTitleFontSize 18
skinparam SwimlaneTitleBackgroundColor #EEE
skinparam SwimlaneBorderColor blue
skinparam SwimlaneBorderThickness 4

|swinlane1|
:first;
:second;
|swinlane2|
:third;
if (foo) then
:something;
endif
|swinlane1|
:back to swinline1;
|swinlane2|
:back to swinline2;
@enduml

Is this what you were expecting ?

...