[Tex/LaTex] Beamercolorbox has no color

beamer

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}%
    {\insertsectionnavigationhorizontal{0.7\textwidth}{}{}}%
\end{beamercolorbox}%
}

enter image description here

I'd really appreciate your help,

Best Answer

You have to setup the color used for the headline template

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

should draw your box with a red background and a yellow text.