| 1 |
% Copyright 2007 by Till Tantau |
| 2 |
% Copyright 2023-2026 by Joseph Wright, samcarter |
| 3 |
% |
| 4 |
% This file may be distributed and/or modified |
| 5 |
% |
| 6 |
% 1. under the LaTeX Project Public License and/or |
| 7 |
% 2. under the GNU Public License. |
| 8 |
% |
| 9 |
% See the file LICENSE.md for more details. |
| 10 |
\PassOptionsToPackage{subsection=false}{beamerouterthememiniframes} |
| 11 |
|
| 12 |
\DeclareOptionBeamer{compress}{\beamer@compresstrue} |
| 13 |
\DeclareOptionBeamer{subsection}[true]{\PassOptionsToPackage{subsection=#1}{beamerouterthememiniframes}} |
| 14 |
\DeclareOptionBeamer{footline}{\PassOptionsToPackage{footline=#1}{beamerouterthememiniframes}} |
| 15 |
|
| 16 |
\ProcessOptionsBeamer |
| 17 |
|
| 18 |
\mode<presentation> |
| 19 |
|
| 20 |
\setbeamercolor{section in head/foot}{use=structure,bg=structure.fg!25!bg} |
| 21 |
|
| 22 |
\useoutertheme{miniframes} |
| 23 |
|
| 24 |
\setbeamertemplate{frametitle}[default][center] |
| 25 |
|
| 26 |
\AtBeginDocument{% |
| 27 |
\begingroup |
| 28 |
\selectcolormodel{gray} |
| 29 |
\pgfdeclareverticalshading{beamer@headfade}{\the\paperwidth}{% |
| 30 |
color(0ex)=(pgftransparent!100);% |
| 31 |
color(1.25cm)=(pgftransparent!0) |
| 32 |
} |
| 33 |
\pgfdeclarefading{beamer@headfademask}{\pgfuseshading{beamer@headfade}} |
| 34 |
\endgroup |
| 35 |
} |
| 36 |
|
| 37 |
\addtobeamertemplate{headline}{% |
| 38 |
\begingroup% |
| 39 |
\begin{pgfpicture} |
| 40 |
\begin{pgfscope}% |
| 41 |
\usebeamercolor{section in head/foot}% |
| 42 |
\pgfsetfillcolor{section in head/foot.bg}% |
| 43 |
\pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.625cm}}{\pgfpoint{\paperwidth}{1.25cm}}% |
| 44 |
\pgfsetfading{beamer@headfademask}{}% |
| 45 |
\pgfusepath{fill}% |
| 46 |
\end{pgfscope}% |
| 47 |
\end{pgfpicture}% |
| 48 |
\endgroup% |
| 49 |
\vskip-1.25cm% |
| 50 |
\setbeamercolor{section in head/foot}{bg=}% |
| 51 |
}{} |
| 52 |
|
| 53 |
\beamertemplatedotitem |
| 54 |
|
| 55 |
\mode |
| 56 |
<all> |