Please provide a way to change the tables background color in titles

0 votes
asked Jan 27, 2016 in Closed feature request by mirecg (240 points)
Please provide a way to change the tables background color in titles.

Also I would like to have odd-even rows colorings.

1 Answer

0 votes
answered Jan 27, 2016 by plantuml (188,280 points)
selected Jul 8 by Anthony-Gaudino
 
Best answer

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

You can now have:

@startuml
title
|= |= table |= header |
| a | table | row |
|<#FF8080> red |<#80FF80> green |<#8080FF> blue |
<#yellow>| b | table | row |
endtitle

start
@enduml

Is this what you are looking for ?


For odd-even rows colorings, the most difficult is to find a nice syntax.
Any suggestions ?
We could allow something like <odd:#yellow><even:#blue> in the table header ?

commented Jan 28, 2016 by mirecg (240 points)
Great!
It even works when I place the color in front of a row, which sets background color for the whole row.
...