Please allow to set the skinparam componentFontColor by stereotype

0 votes
asked Feb 11, 2016 in Closed feature request by cgoguyer (550 points)

Please allow to set the skinparam componentFontColor by stereotype.

Example:

skinparam component {
    FontColor<<1>> White
    FontColor<<2>> Black
}

1 Answer

0 votes
answered Feb 28, 2016 by plantuml (183,480 points)
selected Mar 1, 2016 by cgoguyer
 
Best answer

With last beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can now have:

@startuml
hide stereotype
skinparam component {
    backgroundColor<<1>> Pink
    backgroundColor<<2>> Green
    FontColor<<1>> White
    FontColor<<2>> Black
}
 
package "SYSTEM1" {
 
[ComponentBox] <<1>>
[AnotherCompBox] <<2>>
@enduml

Is this what you are expecting ?

This will be released in next official version.

commented Mar 1, 2016 by cgoguyer (550 points)
Yes, that is just what I need and it works fine.
...