Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the background color of a legend in plant uml?

Tags:

plantuml

I've created a legend in a diagram but one of the colors im using is very close to the color of the legend, is there a way to change the back ground color of the legend?

legend
|= |= Type |
|<back:D1D3D4>   </back>| Color one |
|<back:#C1D82F>   </back>| Color Two |
endlegend

enter image description here

like image 642
user1605665 Avatar asked Dec 24 '22 03:12

user1605665


1 Answers

You appear to be able to change the background colour of the legend using skinparam, although this doesn't seem to be documented:

@startuml

skinparam legendBackgroundColor #ff9999

legend
|= |= Type |
|<back:D1D3D4>   </back>| Color one |
|<back:#C1D82F>   </back>| Color Two |
endlegend
@enduml

Coloured legend

like image 106
JRI Avatar answered Dec 31 '22 04:12

JRI