summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-08-23 21:58:14 +0000
committerKarl Berry <karl@freefriends.org>2018-08-23 21:58:14 +0000
commit14b9c74b24ab667050881bb540464c1593f7e3c9 (patch)
tree3d79aa99e4cf8fbc081ca4699f6cb5eba82f95db /Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty
parent4de0aaf26f1159c3bf44fce8a41174fb4188d597 (diff)
beamer (23aug18)
git-svn-id: svn://tug.org/texlive/trunk@48468 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty')
-rw-r--r--Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty46
1 files changed, 26 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty b/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty
index 03bbad214c8..80db372d414 100644
--- a/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty
+++ b/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty
@@ -12,30 +12,33 @@
\useoutertheme{split}
-
\setbeamercolor{frametitle}{parent=subsection in head/foot}
\setbeamercolor{frametitle right}{parent=section in head/foot}
-
\pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{\paperheight}{%
color(0pt)=(frametitle.bg);
- color(\paperwidth)=(frametitle right.bg)}
+ color(\paperwidth)=(frametitle right.bg)
+}
-\AtBeginDocument{
- \pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
- color(0pt)=(bg);
- color(4pt)=(black!50!bg)}
+\pgfdeclareverticalshading{beamer@topshade}{2\paperwidth}{%
+ color(0pt)=(pgftransparent!100);
+ color(8pt)=(pgftransparent!0)
}
+\pgfdeclarefading{beamer@topshadowmask}{\pgfuseshading{beamer@topshade}}
+
\addtobeamertemplate{headline}
{}
{%
- \vskip-0.2pt
- \pgfuseshading{beamer@topshade}
+ \vskip0pt
+ \begin{pgfpicture}
+ \pgfpathrectangle{\pgfpoint{0pt}{-4pt}}{\pgfpoint{\paperwidth}{4pt}}%
+ \pgfsetfading{beamer@topshadowmask}{}%
+ \pgfusepath{fill}%
+ \end{pgfpicture}
\vskip-2pt
}
-
\defbeamertemplate*{frametitle}{shadow theme}
{%
\nointerlineskip%
@@ -63,23 +66,26 @@
\beamer@tempdim=\ht\beamer@tempbox%
\advance\beamer@tempdim by 2pt%
\begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim}
- \usebeamercolor{frametitle right}
- \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}
- \pgfusepath{clip}
- \pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}
+ \begin{pgfscope}
+ \pgfsetfillcolor{black}%
+ \pgfpathrectangle{\pgfpoint{0pt}{-4pt}}{\pgfpoint{\paperwidth}{8pt}}%
+ \pgfsetfading{beamer@topshadowmask}{}%
+ \pgfusepath{fill}%
+ \end{pgfscope}
+ \begin{pgfscope}
+ \usebeamercolor{frametitle right}%
+ \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}}%
+ \pgfusepath{clip}%
+ \pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}}%
+ \end{pgfscope}
\end{pgfpicture}
\hskip-\paperwidth%
\box\beamer@tempbox%
}%
\hskip-\Gm@rmargin%
}%
- \nointerlineskip
- \vskip-0.2pt
- \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin}
- \vskip-2pt
+ \vskip-2pt
}
-
-
\mode
<all>