Is it possible to change the colors used in the pgf-umlcd
package used to model UML class diagrams? The default yields a yellow background and a red border. However I'd like to use black and white diagrams (bg=white, border=black
).
It is probably possible by changing the tikz
-settings, but I'm not familiar with that.
Example code:
\documentclass{article}
\usepackage{pgf-umlcd}
\begin{document}
\begin{tikzpicture}
\begin{class}{MyClass}{0, 0}
\operation{myMethod(arg : ArgClass)}
\end{class}
\end{tikzpicture}
\end{document}
Best Answer
I found the answer by looking at the source-code at CTAN.
Change the text color:
Change the border color:
Change the background color: