setting ad hoc gradient backgrounds in activity

0 votes
asked Sep 7, 2016 in Wanted features by boshka (3,940 points)

Can we support the ad hoc gradient notations in the activity diagrams as follows?

partition #red/#white testPartition {

        #blue/#white:testActivity;
}
 
Currently you can do this only globally by specifying the skinparams:
skinparam partitionBackgroundColor red/white
skinparam activityBackgroundColor blue/white
 

 

1 Answer

0 votes
answered Sep 9, 2016 by plantuml (294,960 points)

Good idea!

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

You can now have:

@startuml
start
partition #red/white testPartition {
        #blue\green:testActivity;
}
@enduml


Is this what you are looking for ?

commented Sep 9, 2016 by boshka (3,940 points)
Yes, many thanks! Please release :)
commented Sep 9, 2016 by boshka (3,940 points)
there is one issue. Shouldn't this work too?

<back:#FF9999/white>#FF9999/white</back>
commented Sep 9, 2016 by plantuml (294,960 points)
You mean, in something like:

@startuml
start;
:hello <back:#FF9999/white>there</back>;
@enduml

So not related to partition ?
commented Sep 9, 2016 by boshka (3,940 points)
yes, so i could do this same style in a legend
commented Sep 13, 2016 by plantuml (294,960 points)
Ok.
This should be possible with last beta
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar
commented Sep 13, 2016 by boshka (3,940 points)
Thanks! works!
...