creating theme adjusting properties

0 votes
asked Mar 27, 2023 in Question / help by anonymous

so im working on a theme and i have some issues. 

1. within the theme i try to adjust a property to a specifc diagram only. but the change applies to every other diagram with such property. syntax:

skinparam Sequence {

   ArrowFontColor #DCDCDC

}

2. for sequence diagrams i want a different color for lifeline, active lifeline and arrows. it is kinda hard to read when those are the same color. i marked the three properties in the following screenshot.

https://i.postimg.cc/MK4gGTsr/test.png

1 Answer

0 votes
answered Mar 28, 2023 by The-Lu (63,920 points)

Hi A., and all,

For that you can use style instead old skinparam, and specify only for sequence, as:

@startuml
<style>
sequenceDiagram {
  lifeLine {
    LineColor Red
    BackGroundColor Green
  }
  arrow {
    FontSize 13
    LineColor Blue
  }
}
</style>

a -> b ++: arrow
a <- b --:success
@enduml

Enjoy,
Regards.

commented Mar 30, 2023 by anonymous

awesome thanks yes wink

...