summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex')
-rw-r--r--graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex12
1 files changed, 9 insertions, 3 deletions
diff --git a/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex b/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
index 966128140e..45497d7e61 100644
--- a/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
+++ b/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
@@ -45,6 +45,12 @@
\ctikzset{poles/full fill opacity=#1}%
}}
+%
+% Provision for changing default background
+%
+
+\ctikzset{open poles fill/.initial={white}}
+
%% Full terminal
\pgfdeclareshape{circ}{
@@ -123,7 +129,7 @@
\pgfsetcolor{\ctikzvalof{color}}
\ifx\tikz@fillcolor\pgfutil@empty
% set the default fill color to white
- \pgfsetfillcolor{white}
+ \pgfsetfillcolor{\ctikzvalof{open poles fill}}
% ...but override it if the class is defined!
% note that this element has no class, but will inherit it when used
% into another component
@@ -240,7 +246,7 @@
\pgfsetcolor{\ctikzvalof{color}}
\ifx\tikz@fillcolor\pgfutil@empty
% set the default fill color to white
- \pgfsetfillcolor{white}
+ \pgfsetfillcolor{\ctikzvalof{open poles fill}}
% ...but override it if the class is defined!
% note that this element has no class, but will inherit it when used
% into another component
@@ -337,7 +343,7 @@
\pgfsetcolor{\ctikzvalof{color}}
\ifx\tikz@fillcolor\pgfutil@empty
% set the default fill color to white
- \pgfsetfillcolor{white}
+ \pgfsetfillcolor{\ctikzvalof{open poles fill}}
% ...but override it if the class is defined!
% note that this element has no class, but will inherit it when used
% into another component