# Adding a small/negligible two-tone border to bottom of slides in Beamer style

All,

I'd like some help making some minor cosmetic changes to my beamer template. I like the template I have no since it's rather bare/plain (which is how I like it), but I'd like to add a little color to it in the form of a small/negligible two-tone border at the bottom of the slides.

Right now, I have something like this

and would like something like this, even if it means adding just a little padding to the footline to separate it from the two-tone border.

Right now, I have the following footline style in my template.

\defbeamertemplate*{footline}{my footline}
{
\ifnum \insertpagenumber=1
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=.8ex,dp=1ex,center]{}%
% empty environment to raise height
\end{beamercolorbox}}%
\vskip0pt%
\else
\hspace*{.5cm}\Tiny{%
\fi
}


Basically, I keep the title frame plain and have those page numbers on every other slide. I'd like to keep it like that.

Any help would be greatly appreciated. beamer markup still isn't very intuitive to me.

A very quick solution is to just add \rule{width}{height} in the desired colour:

\documentclass{beamer}

\defbeamertemplate*{footline}{my footline}{%
\ifnum\insertpagenumber=1
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=.8ex,dp=1ex,center]{}%
% empty environment to raise height
\end{beamercolorbox}%
}%
\vskip0pt%
\else%
{%
\Tiny
\hfill%
\newline%
\textcolor{red}{\rule{\paperwidth}{0.4mm}}\newline%
\textcolor{black}{\rule{\paperwidth}{0.5mm}}%
}%
\fi%
}

\begin{document}

\frame{a}
\frame{d}
\frame{c}
\frame{b}

\end{document}


• It took some additional tweaking to get exactly what I wanted, but this was great. Thanks! – steve Feb 23 '15 at 21:48
• \color doesn't have a second mandatory argument; either use \textcolor{red}{\rule{\paperwidth}{0.4mm}} or {\color{red}\rule{\paperwidth}{0.4mm}} (+1, by the way). – Gonzalo Medina Feb 23 '15 at 21:59
• @GonzaloMedina Thanks for pointing this out, I modified my example accordingly. – samcarter_is_at_topanswers.xyz Feb 24 '15 at 12:49