diff options
author | Karl Berry <karl@freefriends.org> | 2018-09-02 21:14:31 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-09-02 21:14:31 +0000 |
commit | 9583cf8867af613f1621b137c8c6d333b7a778d6 (patch) | |
tree | 068604e86fa3ae45161962b9f750bb7b84c35620 /Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty | |
parent | 3f5c36c82f7e0184c17f0d2674d6bb0618cb1aeb (diff) |
beamer (2sep18)
git-svn-id: svn://tug.org/texlive/trunk@48547 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.sty | 46 |
1 files changed, 20 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty b/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty index 80db372d414..03bbad214c8 100644 --- a/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty +++ b/Master/texmf-dist/tex/latex/beamer/beamerouterthemeshadow.sty @@ -12,33 +12,30 @@ \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)} -\pgfdeclareverticalshading{beamer@topshade}{2\paperwidth}{% - color(0pt)=(pgftransparent!100); - color(8pt)=(pgftransparent!0) +\AtBeginDocument{ + \pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{% + color(0pt)=(bg); + color(4pt)=(black!50!bg)} } -\pgfdeclarefading{beamer@topshadowmask}{\pgfuseshading{beamer@topshade}} - \addtobeamertemplate{headline} {} {% - \vskip0pt - \begin{pgfpicture} - \pgfpathrectangle{\pgfpoint{0pt}{-4pt}}{\pgfpoint{\paperwidth}{4pt}}% - \pgfsetfading{beamer@topshadowmask}{}% - \pgfusepath{fill}% - \end{pgfpicture} + \vskip-0.2pt + \pgfuseshading{beamer@topshade} \vskip-2pt } + \defbeamertemplate*{frametitle}{shadow theme} {% \nointerlineskip% @@ -66,26 +63,23 @@ \beamer@tempdim=\ht\beamer@tempbox% \advance\beamer@tempdim by 2pt% \begin{pgfpicture}{0pt}{0pt}{\paperwidth}{\beamer@tempdim} - \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} + \usebeamercolor{frametitle right} + \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\beamer@tempdim}} + \pgfusepath{clip} + \pgftext[left,base]{\pgfuseshading{beamer@frametitleshade}} \end{pgfpicture} \hskip-\paperwidth% \box\beamer@tempbox% }% \hskip-\Gm@rmargin% }% - \vskip-2pt + \nointerlineskip + \vskip-0.2pt + \hbox to\textwidth{\hskip-\Gm@lmargin\pgfuseshading{beamer@topshade}\hskip-\Gm@rmargin} + \vskip-2pt } + + \mode <all> |