Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the fontcolor of Legend Title #152

Closed
christo-ph opened this issue May 31, 2021 · 4 comments
Closed

Change the fontcolor of Legend Title #152

christo-ph opened this issue May 31, 2021 · 4 comments

Comments

@christo-ph
Copy link

I am unable to get the setting which controls the default black legend title. I tried

skinparam LegendFontColor #DDDDDD

but this changes the color of the fine borders between the components only. Not the font color.

image

@kirchsth
Copy link
Contributor

you can change it via !global $LEGEND_TITLE_COLOR = "#DDDDDD"

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml


!global $LEGEND_TITLE_COLOR = "red"

Person(personAlias, "Label", "Optional Description")
Container(containerAlias, "Label", "Technology", "Optional Description")
System(systemAlias, "Label", "Optional Description")

Rel(personAlias, containerAlias, "Label", "Optional Technology")

SHOW_LEGEND()
@enduml

BR Helmut

@christo-ph
Copy link
Author

Great, thanks Helmut. Did you find this in the documentation? Or code?

@kirchsth
Copy link
Contributor

kirchsth commented May 31, 2021

I wrote it ;-)

PS.: It's in C4.puml like other default colors

@christo-ph
Copy link
Author

Nice life hack ;-) Thanks anyway

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants