diff options
Diffstat (limited to 'tex/context/base/node-bck.mkiv')
-rw-r--r-- | tex/context/base/node-bck.mkiv | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/tex/context/base/node-bck.mkiv b/tex/context/base/node-bck.mkiv index ff0de6a5d..ed927cf0d 100644 --- a/tex/context/base/node-bck.mkiv +++ b/tex/context/base/node-bck.mkiv @@ -28,11 +28,16 @@ \def\colorattr#1% {\ifcsname\??colorattribute\currentcolorprefix#1\endcsname - \thecolorattr{\currentcolorprefix#1}% + \node_backgrounds_thecolorattr{\currentcolorprefix#1}% \else\ifcsname\??colorattribute#1\endcsname - \thecolorattr{#1}% + \node_backgrounds_thecolorattr{#1}% \fi\fi} +\def\node_backgrounds_thecolorattr#1% + {attr \colormodelattribute \attribute\colormodelattribute + attr \colorattribute \lastnamedcs + attr \transparencyattribute \thetransparencyattribute{#1} } % can be optimized + \def\thecolorattr#1% {attr \colormodelattribute \attribute\colormodelattribute attr \colorattribute \csname\??colorattribute#1\endcsname @@ -40,9 +45,9 @@ \def\backgroundcolorattr#1% {\ifcsname\??colorattribute\currentcolorprefix#1\endcsname - \thebackgroundcolorattr{\currentcolorprefix#1}% + \node_backgrounds_thebackgroundcolorattr{\currentcolorprefix#1}% \else\ifcsname\??colorattribute#1\endcsname - \thebackgroundcolorattr{#1}% + \node_backgrounds_thebackgroundcolorattr{#1}% \fi\fi} \def\thebackgroundcolorattr#1% @@ -51,6 +56,12 @@ attr \colorattribute \csname\??colorattribute#1\endcsname attr \transparencyattribute \thetransparencyattribute{#1} } % can be optimized +\def\node_backgrounds_thebackgroundcolorattr#1% + {attr \backgroundattribute \plusone + attr \colormodelattribute \attribute\colormodelattribute + attr \colorattribute \lastnamedcs + attr \transparencyattribute \thetransparencyattribute{#1} } % can be optimized + \def\thealignbackgroundcolorattr#1% {attr \alignbackgroundattribute \plusone attr \colormodelattribute \attribute\colormodelattribute |