user defined style targets in activity diagram (beta)

0 votes
asked Nov 5 in Wanted features by kasra
edited Nov 6

Hi,

when i use skinparam, i am able to target specific activity to apply style.

But i would like to use the new css way of doing it.

Am i doing something bad ?

here is the exemple :

@startuml
title %version()
/' this is working
skinparam ArrowColor  green
skinparam ActivityBackgroundColor<<x>> #00ff00  
skinparam ActivityBackgroundColor<<y>> #00ffff   
'/
skinparam useBetaStyle true
<style>
activityDiagram
{
 arrow {
     LineColor green
 }
 .x {
     BackgroundColor #00ff00  
 }
 .y {
     BackgroundColor #00ffff  
 }
}
</style>
start
<< x >>:hello;
<< y >>:world;
stop
@enduml

my version of plantuml is  1.2020.20beta11

thanks for you help

1 Answer

0 votes
answered Nov 6 by plantuml (235,420 points)
 
Best answer

Thanks for the report. This is a bug...

It has been solved in last beta http://beta.plantuml.net/plantuml.jar and on the online server.

Note that you don't have to put skinparam useBetaStyle true now as long as you are defining some <style>

commented Nov 6 by anonymous
perfect, it works.

thanks !
...