summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer/base/themes
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer/base/themes')
-rw-r--r--macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothbars.sty70
-rw-r--r--macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothtree.sty69
2 files changed, 94 insertions, 45 deletions
diff --git a/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothbars.sty b/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothbars.sty
index 0a68ff0598..385ad307eb 100644
--- a/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothbars.sty
+++ b/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothbars.sty
@@ -35,22 +35,19 @@
\ifbeamer@sb@subsection
\pgfdeclareverticalshading{beamer@barshade}{\the\paperwidth}{%
- color(0ex)=(global.bg);%
- color(1ex)=(subsection in head/foot.bg);%
- color(3.25ex)=(subsection in head/foot.bg);%
- color(4.25ex)=(section in head/foot.bg);%
- color(9.75ex)=(section in head/foot.bg)%
+ color(0ex)=(subsection in head/foot.bg);%
+ color(2.25ex)=(subsection in head/foot.bg);%
+ color(3.25ex)=(section in head/foot.bg);%
+ color(8.75ex)=(section in head/foot.bg)%
}
\pgfdeclareverticalshading{beamer@aboveframetitle}{\the\paperwidth}{%
color(0ex)=(frametitle.bg);%
- color(1ex)=(frametitle.bg);%
- color(2ex)=(subsection in head/foot.bg)
+ color(1ex)=(subsection in head/foot.bg)
}
\else
\pgfdeclareverticalshading{beamer@barshade}{\the\paperwidth}{%
- color(0ex)=(global.bg);%
- color(1ex)=(section in head/foot.bg);%
- color(7ex)=(section in head/foot.bg)%
+ color(0ex)=(section in head/foot.bg);%
+ color(6ex)=(section in head/foot.bg)%
}
\pgfdeclareverticalshading{beamer@aboveframetitle}{\the\paperwidth}{%
color(0ex)=(frametitle.bg);%
@@ -58,11 +55,15 @@
color(2ex)=(section in head/foot.bg)
}
\fi
-
- \pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{%
- color(0ex)=(global.bg);%
- color(1ex)=(frametitle.bg)
- }
+
+ \begingroup
+ \selectcolormodel{gray}
+ \pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{%
+ color(0ex)=(pgftransparent!100);%
+ color(1ex)=(pgftransparent!0)
+ }
+ \pgfdeclarefading{beamer@belowframetitlemask}{\pgfuseshading{beamer@belowframetitle}}
+ \endgroup
}
}
@@ -70,10 +71,25 @@
\defbeamertemplate*{headline}{smoothbars theme}
{%
\pgfuseshading{beamer@barshade}%
+ \vskip-0.05ex%
+ \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+ \begin{pgfpicture}
+ \begin{pgfscope}%
+ \ifbeamer@sb@subsection%
+ \pgfsetfillcolor{subsection in head/foot.bg}%
+ \else%
+ \pgfsetfillcolor{section in head/foot.bg}%
+ \fi%
+ \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+ \pgfsetfading{beamer@belowframetitlemask}{}%
+ \pgfusepath{fill}%
+ \end{pgfscope}%
+ \end{pgfpicture}%
+ \end{beamercolorbox}%
\ifbeamer@sb@subsection%
\vskip-9.75ex%
\else%
- \vskip-7ex%
+ \vskip-6.85ex%
\fi%
\begin{beamercolorbox}[ignorebg,ht=2.25ex,dp=3.75ex]{section in head/foot}
\insertnavigation{\paperwidth}
@@ -90,13 +106,15 @@
\defbeamertemplate*{frametitle}{smoothbars theme}
{%
\nointerlineskip%
+ \vskip-0.19ex%
\usebeamerfont{headline}%
- \begin{beamercolorbox}[wd=\paperwidth,ht=1.5ex,dp=0ex,vmode]{empty}
+ \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=1ex,vmode]{empty}
\pgfuseshading{beamer@aboveframetitle}%
\end{beamercolorbox}%
- \vskip-.5ex%
+ \vskip-1ex%
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,leftskip=.3cm,rightskip=.3cm plus1fil,vmode]{frametitle}
+ \vskip0.5ex%
\usebeamerfont*{frametitle}\strut\insertframetitle%
\ifx\insertframesubtitle\@empty%
\strut\par%
@@ -104,11 +122,19 @@
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle}\strut\par}%
\fi%%
\usebeamerfont{headline}%
- \vskip.5ex
+ \vskip0.05ex%
\end{beamercolorbox}%
- \nointerlineskip
- \begin{beamercolorbox}[wd=\paperwidth,ht=.5ex,dp=0ex]{empty}
- \pgfuseshading{beamer@belowframetitle}%
+ \nointerlineskip%
+ \vskip-0.05ex%
+ \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+ \begin{pgfpicture}
+ \begin{pgfscope}%
+ \pgfsetfillcolor{frametitle.bg}%
+ \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+ \pgfsetfading{beamer@belowframetitlemask}{}%
+ \pgfusepath{fill}%
+ \end{pgfscope}%
+ \end{pgfpicture}%
\end{beamercolorbox}%
}
diff --git a/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothtree.sty b/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothtree.sty
index 6af2e39505..fc6c9937de 100644
--- a/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothtree.sty
+++ b/macros/latex/contrib/beamer/base/themes/outer/beamerouterthemesmoothtree.sty
@@ -23,33 +23,47 @@
\usebeamercolor{frametitle}
\pgfdeclareverticalshading{beamer@treeshade}{\the\paperwidth}{%
- color(0ex)=(normal text.bg);%
- color(1ex)=(subsection in head/foot.bg);%
- color(3.25ex)=(subsection in head/foot.bg);%
- color(4.25ex)=(section in head/foot.bg);%
- color(6.5ex)=(section in head/foot.bg);%
- color(7.5ex)=(title in head/foot.bg);%
- color(10.25ex)=(title in head/foot.bg)%
+ color(0ex)=(subsection in head/foot.bg);%
+ color(2.25ex)=(subsection in head/foot.bg);%
+ color(3.25ex)=(section in head/foot.bg);%
+ color(5.5ex)=(section in head/foot.bg);%
+ color(6.5ex)=(title in head/foot.bg);%
+ color(9.25ex)=(title in head/foot.bg)%
}
\pgfdeclareverticalshading{beamer@aboveframetitle}{\the\paperwidth}{%
color(0ex)=(frametitle.bg);%
- color(1ex)=(frametitle.bg);%
- color(2ex)=(subsection in head/foot.bg)
- }
-
- \pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{%
- color(0ex)=(normal text.bg);%
- color(1ex)=(frametitle.bg)
+ color(1ex)=(subsection in head/foot.bg)
}
+
+ \begingroup
+ \selectcolormodel{gray}
+ \pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{%
+ color(0ex)=(pgftransparent!100);%
+ color(1ex)=(pgftransparent!0)
+ }
+ \pgfdeclarefading{beamer@belowframetitlemask}{\pgfuseshading{beamer@belowframetitle}}
+ \endgroup
+
}
}
\defbeamertemplate*{headline}{smoothtree theme}
{%
\pgfuseshading{beamer@treeshade}%
- \vskip-10.25ex%
- \begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,%
+ \vskip-0.05ex%
+ \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+ \begin{pgfpicture}
+ \begin{pgfscope}%
+ \pgfsetfillcolor{subsection in head/foot.bg}%
+ \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+ \pgfsetfading{beamer@belowframetitlemask}{}%
+ \pgfusepath{fill}%
+ \end{pgfscope}%
+ \end{pgfpicture}%
+ \end{beamercolorbox}%
+ \vskip-9.15ex%
+ \begin{beamercolorbox}[wd=\paperwidth,ht=1.125ex,dp=1.125ex,ignorebg,%
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}
@@ -63,18 +77,20 @@
\usebeamerfont{subsection in head/foot}%
\hskip12pt\insertsubsectionhead
\end{beamercolorbox}
+ \vskip-0.4ex%
}
\defbeamertemplate*{frametitle}{smoothtree theme}
{%
\nointerlineskip%
+ \vskip-0.05ex%
\usebeamerfont{headline}%
- \begin{beamercolorbox}[wd=\paperwidth,ht=1.5ex,dp=0ex]{empty}
+ \begin{beamercolorbox}[wd=\paperwidth,ht=0.85ex,dp=0ex]{empty}
\pgfuseshading{beamer@aboveframetitle}%
- \end{beamercolorbox}%
- \vskip-.5ex%
+ \end{beamercolorbox}
\nointerlineskip%
\begin{beamercolorbox}[wd=\paperwidth,leftskip=.935cm,rightskip=.3cm plus1fil]{frametitle}
+ \vskip-1.2ex%
\usebeamerfont*{frametitle}\strut\insertframetitle%
\ifx\insertframesubtitle\@empty%
\strut\par%
@@ -82,12 +98,19 @@
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle}\strut\par}%
\fi%%
\usebeamerfont{headline}%
- \vskip.5ex
\end{beamercolorbox}%
\nointerlineskip
- \begin{beamercolorbox}[wd=\paperwidth,ht=.5ex,dp=0ex]{empty}
- \pgfuseshading{beamer@belowframetitle}%
- \end{beamercolorbox}%
+ \vskip-0.2ex%
+ \begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty}
+ \begin{pgfpicture}
+ \begin{pgfscope}%
+ \pgfsetfillcolor{frametitle.bg}%
+ \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}%
+ \pgfsetfading{beamer@belowframetitlemask}{}%
+ \pgfusepath{fill}%
+ \end{pgfscope}%
+ \end{pgfpicture}%
+ \end{beamercolorbox}%
}