| 1 |
% Copyright 2007 by Till Tantau |
| 2 |
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright |
| 3 |
% Copyright 2019-2026 by Joseph Wright, samcarter |
| 4 |
% |
| 5 |
% This file may be distributed and/or modified |
| 6 |
% |
| 7 |
% 1. under the LaTeX Project Public License and/or |
| 8 |
% 2. under the GNU Public License. |
| 9 |
% |
| 10 |
% See the file LICENSE.md for more details. |
| 11 |
|
| 12 |
\mode<presentation> |
| 13 |
|
| 14 |
\setbeamercolor{frametitle}{parent=palette primary} |
| 15 |
|
| 16 |
\setbeamertemplate{section in head/foot}[default] |
| 17 |
\setbeamertemplate{subsection in head/foot}[default] |
| 18 |
|
| 19 |
\AtBeginDocument{ |
| 20 |
{ |
| 21 |
\usebeamerfont*{headline} |
| 22 |
|
| 23 |
\usebeamercolor{normal text} |
| 24 |
\usebeamercolor{title in head/foot} |
| 25 |
\usebeamercolor{subsection in head/foot} |
| 26 |
\usebeamercolor{section in head/foot} |
| 27 |
\usebeamercolor{frametitle} |
| 28 |
|
| 29 |
\pgfdeclareverticalshading{beamer@treeshade}{\the\paperwidth}{% |
| 30 |
color(0ex)=(subsection in head/foot.bg);% |
| 31 |
color(2.25ex)=(subsection in head/foot.bg);% |
| 32 |
color(3.25ex)=(section in head/foot.bg);% |
| 33 |
color(5.5ex)=(section in head/foot.bg);% |
| 34 |
color(6.5ex)=(title in head/foot.bg);% |
| 35 |
color(9.25ex)=(title in head/foot.bg)% |
| 36 |
} |
| 37 |
|
| 38 |
\pgfdeclareverticalshading{beamer@aboveframetitle}{\the\paperwidth}{% |
| 39 |
color(0ex)=(frametitle.bg);% |
| 40 |
color(1ex)=(subsection in head/foot.bg) |
| 41 |
} |
| 42 |
|
| 43 |
\begingroup |
| 44 |
\selectcolormodel{gray} |
| 45 |
\pgfdeclareverticalshading{beamer@belowframetitle}{\the\paperwidth}{% |
| 46 |
color(0ex)=(pgftransparent!100);% |
| 47 |
color(1ex)=(pgftransparent!0) |
| 48 |
} |
| 49 |
\pgfdeclarefading{beamer@belowframetitlemask}{\pgfuseshading{beamer@belowframetitle}} |
| 50 |
\endgroup |
| 51 |
|
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
\defbeamertemplate*{headline}{smoothtree theme} |
| 56 |
{% |
| 57 |
\pgfuseshading{beamer@treeshade}% |
| 58 |
\vskip-0.05ex% |
| 59 |
\begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty} |
| 60 |
\begin{pgfpicture} |
| 61 |
\begin{pgfscope}% |
| 62 |
\pgfsetfillcolor{subsection in head/foot.bg}% |
| 63 |
\pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}% |
| 64 |
\pgfsetfading{beamer@belowframetitlemask}{}% |
| 65 |
\pgfusepath{fill}% |
| 66 |
\end{pgfscope}% |
| 67 |
\end{pgfpicture}% |
| 68 |
\end{beamercolorbox}% |
| 69 |
\vskip-9.15ex% |
| 70 |
\begin{beamercolorbox}[wd=\paperwidth,ht=1.125ex,dp=1.125ex,ignorebg,% |
| 71 |
leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot} |
| 72 |
\usebeamerfont{title in head/foot}\insertshorttitle |
| 73 |
\end{beamercolorbox} |
| 74 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,% |
| 75 |
leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot} |
| 76 |
\usebeamerfont{section in head/foot}% |
| 77 |
\hskip6pt\usebeamertemplate{section in head/foot} |
| 78 |
\end{beamercolorbox} |
| 79 |
\begin{beamercolorbox}[wd=\paperwidth,ht=2.125ex,dp=1.125ex,ignorebg,% |
| 80 |
leftskip=.3cm,rightskip=.3cm plus1fil]{subsection in head/foot} |
| 81 |
\usebeamerfont{subsection in head/foot}% |
| 82 |
\hskip12pt\usebeamertemplate{subsection in head/foot} |
| 83 |
\end{beamercolorbox} |
| 84 |
\vskip-0.4ex% |
| 85 |
} |
| 86 |
|
| 87 |
\defbeamertemplate*{frametitle}{smoothtree theme} |
| 88 |
{% |
| 89 |
\nointerlineskip% |
| 90 |
\vskip-0.05ex% |
| 91 |
\usebeamerfont{headline}% |
| 92 |
\begin{beamercolorbox}[wd=\paperwidth,ht=0.85ex,dp=0ex]{empty} |
| 93 |
\pgfuseshading{beamer@aboveframetitle}% |
| 94 |
\end{beamercolorbox} |
| 95 |
\nointerlineskip% |
| 96 |
\begin{beamercolorbox}[wd=\paperwidth,leftskip=.935cm,rightskip=.3cm plus1fil]{frametitle} |
| 97 |
\vskip-1.2ex% |
| 98 |
\usebeamerfont*{frametitle}\strut\insertframetitle% |
| 99 |
\ifx\insertframesubtitle\@empty% |
| 100 |
\strut\par% |
| 101 |
\else |
| 102 |
\par{\usebeamerfont*{framesubtitle}{\usebeamercolor[fg]{framesubtitle}\strut\insertframesubtitle}\strut\par}% |
| 103 |
\fi%% |
| 104 |
\usebeamerfont{headline}% |
| 105 |
\end{beamercolorbox}% |
| 106 |
\nointerlineskip |
| 107 |
\vskip-0.2ex% |
| 108 |
\begin{beamercolorbox}[wd=\paperwidth,ht=1ex,dp=0ex]{empty} |
| 109 |
\begin{pgfpicture} |
| 110 |
\begin{pgfscope}% |
| 111 |
\pgfsetfillcolor{frametitle.bg}% |
| 112 |
\pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.5ex}}{\pgfpoint{\paperwidth}{1ex}}% |
| 113 |
\pgfsetfading{beamer@belowframetitlemask}{}% |
| 114 |
\pgfusepath{fill}% |
| 115 |
\end{pgfscope}% |
| 116 |
\end{pgfpicture}% |
| 117 |
\end{beamercolorbox}% |
| 118 |
} |
| 119 |
|
| 120 |
|
| 121 |
\mode |
| 122 |
<all> |