summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-08-08 03:01:09 +0000
committerNorbert Preining <norbert@preining.info>2020-08-08 03:01:09 +0000
commit1c9455caf30309c8b8ba69afdc5a16a83d9f9a58 (patch)
tree0bc3971e599005a7420c53782539e789de57b40d /graphics/pgf/contrib/circuitikz/tex/pgfcircshapes.tex
parent3710c23789342d9d88783cbe9ad23eb5263a7c33 (diff)
CTAN sync 202008080301
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