Fix progress bar colour regression

This commit is contained in:
Ross Churchley 2015-06-18 00:23:33 -07:00
parent 7ef38d77c5
commit 26887981fc
2 changed files with 27 additions and 4 deletions

View File

@ -118,11 +118,22 @@
% Progress bar and title separator % Progress bar and title separator
% %
% \begin{macrocode} % \begin{macrocode}
\setbeamercolor{title separator}{use=progress bar, parent=progress bar} \setbeamercolor{title separator}{
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in head/foot}{%
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in section page}{
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar}{% \setbeamercolor{progress bar}{%
use=alerted text, use=alerted text,
fg=alerted text.fg, fg=alerted text.fg,
bg=normal text.bg!50!fg bg=normal text.bg!50!normal text.fg
} }
% \end{macrocode} % \end{macrocode}
% %

View File

@ -31,6 +31,7 @@
% %
% A |beamer| inner theme dictates the style of the frame elements traditionally % A |beamer| inner theme dictates the style of the frame elements traditionally
% set in the ``body'' of each slide. These include: % set in the ``body'' of each slide. These include:
%
% \begin{itemize} % \begin{itemize}
% \item title, part, and section pages; % \item title, part, and section pages;
% \item itemize, enumerate, and description environments; % \item itemize, enumerate, and description environments;
@ -44,6 +45,7 @@
% \subsection{Title page} % \subsection{Title page}
% %
% \begin{macro}{title page} % \begin{macro}{title page}
%
% Template for the title page. % Template for the title page.
% %
% \begin{macrocode} % \begin{macrocode}
@ -156,8 +158,10 @@
% %
% \begin{macro}{\maketitle} % \begin{macro}{\maketitle}
% \begin{macro}{\titlepage} % \begin{macro}{\titlepage}
%
% Inserts the title frame, or causes the current frame to use the % Inserts the title frame, or causes the current frame to use the
% |title page| template. % |title page| template.
%
% \begin{macrocode} % \begin{macrocode}
\def\maketitle{% \def\maketitle{%
\ifbeamer@inframe \ifbeamer@inframe
@ -178,7 +182,9 @@
% \subsection{Section page} % \subsection{Section page}
% %
% \begin{macro}{section page} % \begin{macro}{section page}
%
% Template for the section title slide at the beginning of each section. % Template for the section title slide at the beginning of each section.
%
% \begin{macrocode} % \begin{macrocode}
\setbeamertemplate{section page}{ \setbeamertemplate{section page}{
\vspace{2em} \vspace{2em}
@ -215,7 +221,11 @@
% \end{macro} % \end{macro}
% %
% \begin{macro}{progress bar in section page} % \begin{macro}{progress bar in section page}
%
% Template for the progress bar displayed by default on the section page. % Template for the progress bar displayed by default on the section page.
% This code is duplicated in large part in the outer theme's template
% |progress bar in head/foot|.
%
% \begin{macrocode} % \begin{macrocode}
\RequirePackage{calc} \RequirePackage{calc}
\newlength{\metropolis@progressonsectionpage} \newlength{\metropolis@progressonsectionpage}
@ -223,8 +233,7 @@
\setlength{\metropolis@progressonsectionpage}{% \setlength{\metropolis@progressonsectionpage}{%
\textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}% \textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}%
}% }%
\begin{tikzpicture}[tight background] \begin{tikzpicture}
\usebeamercolor{progress bar}
\draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt); \draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt);
\draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressonsectionpage, 0.4pt); \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressonsectionpage, 0.4pt);
\end{tikzpicture}% \end{tikzpicture}%
@ -365,6 +374,9 @@
\setlength{\parskip}{0.5em} \setlength{\parskip}{0.5em}
\linespread{1.15} \linespread{1.15}
% \end{macrocode} % \end{macrocode}
%
%
%
% \iffalse % \iffalse
%</package> %</package>
% \fi % \fi