You have to dig into the Madrid
theme in order to see what it sets for the colours. Looking at beamerthemeMadrid.sty
, we see it uses the following additional themes:
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme[shadow]{rounded}
\useoutertheme{infolines}
While one might think the colours are defined in beamercolorthemewhale.sty
and beamercolorthemeorchid.sty
, this is only partially true. Let's look at the construction of the footline
in beamerouterthemeinfolines.sty
:
\setbeamercolor*{author in head/foot}{parent=palette tertiary}
\setbeamercolor*{title in head/foot}{parent=palette secondary}
\setbeamercolor*{date in head/foot}{parent=palette primary}
\defbeamertemplate*{footline}{infolines theme}
{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor\expandafter\beamer@ifempty\expandafter{\beamer@shortinstitute}{}{~~(\insertshortinstitute)}
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
\usebeamerfont{title in head/foot}\insertshorttitle
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
\insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
\end{beamercolorbox}}%
\vskip0pt%
}
It seems to construct 3 boxes with the left using colour author in head/foot
(parent=palette tertiary
), the centre using colour title in head/foot
(parent=palette secondary
) and the right using colour date in head/foot
(parent=palette primary
). So, change the aforementioned colours.
I'd rather suggest changing the base colour, and letting the other theme colours follow relative to it. For example, change beamer@blendedblue
:
\documentclass{beamer}
\usepackage{lmodern}
\usetheme{Madrid}
% Change base colour beamer@blendedblue (originally RGB: 0.2,0.2,0.7)
\colorlet{beamer@blendedblue}{green!40!black}
\begin{document}
\begin{frame}{Frame title}
This is some frame content
\end{frame}
\end{document}
Best Answer
Starting from the Madrid theme, one could redefine the
footline
template (taking immediately into account to suppress the subsections, as it is possible to see from\useoutertheme[subsection=false]{smoothbars}
).Code:
which gives: