change color of salt button to represent disabled status

0 votes
asked Oct 2, 2020 in Wanted features by lorenzn (120 points)

@startuml withdisabledbutton
skinparam Handwritten  true
salt
{^
My Label | ^Dropdown item    ^ 
[My Button] | *
[<color:#9a9a9a> My Button] | *
. | . 
. | . 

@enduml

I would like to create a disabled version of "My Button".  Using <color:#9a9a9a> does change the color to gray to represent the disabled button, however, the width of the button increases.  As a workaround for now I do not use the <color> and instead edit the svg directly.

I also tried the beta style feature but I don't think salt is supported now.

1 Answer

0 votes
answered Oct 5, 2020 by plantuml (295,000 points)
Thanks for the report.

This has been just fixed in last beta http://beta.plantuml.net/plantuml.jar and on the online server.

Tell us if it's not working for you !
commented Oct 6, 2020 by lorenzn (120 points)
I confirm the fix with 1.2020.19beta1.  Thank you!
commented Oct 16, 2020 by The-Lu (64,340 points)

And documentation added on:

...