# Beamercolorbox has no color

I'm using the Warsaw beamer theme and try to customize it because the section headline is way too big for my presentation (about 7 sections). I found a way to display only the section names in the headline. It looks pretty much like I want it to except the headline is not colored. The highlighting of the sections works but the colors won't. I'm not quite sure what the problem is. I use a beamercolorbox but it's just white. In the footline the exact same code produces a colored box.

The code I use for the headline:

\setbeamertemplate{headline}
{%
\begin{beamercolorbox}[wd=\paperwidth,ht=5ex,dp=3.5ex]{sec}%
\raggedright%
\hspace*{2em}%
\end{beamercolorbox}%
}


-
Welcome to TeX.sx! No need to add thanks, simply upvote any good answers you may receive. – Peter Jansson Feb 26 '13 at 14:03

\setbeamercolor{headline}{fg=yellow,bg=red}