How can I change the arrow font color debending on a stereotyp? Following version is not working
skinparam arrow<<v1.0>> {
FontColor Red
}
I tried it with
skinparam arrow<<v1.0>> {
Color Text:Red
}
but then I cannot combine it with another stereotype, sample see below
@startuml
' init with default values
skinparam arrow {
FontColor Gray
Color Gray
}
skinparam component {
FontColor #Gray
BorderColor #Gray
BackgroundColor #White
}
' component color can be changed individual (and combined)
skinparam component<<v1.0>> {
FontColor Red
}
skinparam component<<v1.1>> {
BorderColor Red
}
' font arrow color cannot be changed individual
skinparam arrow<<v1.0>> {
FontColor Red
}
' arrow color can be changed individual
skinparam arrow<<v1.1>> {
Color Red
}
' simulate expected combination
skinparam arrow<<v1.0&v1.1>> {
Color Red;Text:Red
}
[oldClient]
[newClient]
[oldComponent]<<v1.0>>
[newComponent]<<v1.1>>
[mixedComponent]<<v1.0>><<v1.1>>
[mixedClient]
oldClient --> oldComponent <<v1.0>>: "use v1.0 interface\ntext should be red"
newClient --> newComponent <<v1.1>>: "use v1.1 interface"
mixedClient --> mixedComponent <<v1.0>><<v1.1>>: "use v1.0 and\nv1.1 interfaces"
mixedClient --> mixedComponent <<v1.0&v1.1>>: "it should look\nlike this"
@enduml