Missing background color of databases after LaTeX export

0 votes
asked Sep 28 in bug by Dresaan (700 points)

When exporting a diagramm with a "database" object to latex, the background color is missing. This can be fixed by adding "fill=plantucolorN" to the main form. Below is a part of Latex export with the fix marked:

\draw[color=red,line width=1.5pt, fill=blue] (473.5pt,155pt) ..controls (473.5pt,145pt) and (535pt,145pt) .. (535pt,145pt) ..controls (535pt,145pt) and (596.5pt,145pt) .. (596.5pt,155pt) -- (596.5pt,181.6094pt) ..controls (596.5pt,191.6094pt) and (535pt,191.6094pt) .. (535pt,191.6094pt) ..controls (535pt,191.6094pt) and (473.5pt,191.6094pt) .. (473.5pt,181.6094pt) -- (473.5pt,155pt);
\draw[color=red,line width=1.5pt] (473.5pt,155pt) ..controls (473.5pt,165pt) and (535pt,165pt) .. (535pt,165pt) ..controls (535pt,165pt) and (596.5pt,165pt) .. (596.5pt,155pt);
\node at (483.5pt,169pt)[below right]{MyDataBase};


(p.s. the eyesight killing colors are just for testing)

1 Answer

0 votes
answered Sep 28 by plantuml (131,770 points)
selected Oct 10 by Dresaan
Best answer

Thanks for the report.

It should be fixed in last beta :


Note that it does not work with gradient :-)

Tell us if it's an issue for you.


commented Sep 29 by Dresaan (700 points)
It is :-D

Do you need the TikZ code? It's the same as in http://plantuml.sourceforge.net/qa/?qa=6481/exceptions-during-export-with-color-gradients

Also: the database gets the wrong color. It gets the same as my classes top color.
commented Sep 29 by plantuml (131,770 points)
Ok, we've fixed several thinks (including text color). BTW, the \ gradient is working for us, could you double check?
You can use beta16 here

We are using the following test diagram:

skinparam class {
  BackgroundColor #c3d8f4\#6192d1
  BorderColor #00FFFF
  FontColor #50FFFF
skinparam database {
  BackgroundColor #FFd8f4\#FF92d1
  BorderColor #50FF50
  FontColor #FF5050
class dummy1 {
database dummy2

It seems to us that color for gradient are inverted. If you look at both results, PNG and LaTeX gradient are inverted.
So we should invert "top color" and "bottom color", right ?



Please continue to post if you find issues!
commented Oct 2 by Dresaan (700 points)
Only the \ is inverted. The other gradients are correct. It would probably be easier to change the ange from -45 to 135 instead of switching the colors. Sorry for providing the wrong angle.

I realized thet the \ is only failing if I use !define. So
BackgroundColor #c3d8f4\#6192d1
is working, but

!define MyBlue #6192d1
BackgroundColor white\MyBlue
is not.
commented Oct 10 by Dresaan (700 points)
I reposted the \-Bug in http://plantuml.sourceforge.net/qa/?qa=6571/color-doesnt-apply-with-angle-and-defined-colors
It might be a bit offtopic in this question.