I use the following code to create a section navigation bar:
\setbeamercolor{section in head/foot}{bg=blue,fg=white}
\addtobeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,center]{section in head/foot}%
\insertsectionnavigationhorizontal{\paperwidth}{}{}
\end{beamercolorbox}}%
}{}
Now the navigation bar has blue background, and white font for current section while gray font for other sections. But is it possible to have different background colors for those? For example, dark blue bg for the current section, and light blue bg for other sections?
The whole beamer tex file is just this very minimal one.
\documentclass{beamer}
\usetheme{Madrid}
\title{Title}
\author{Author}
\date{\today}
\addtobeamertemplate{footline}{%
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\insertsectionnavigationhorizontal{\paperwidth}{}{}
\end{beamercolorbox}}%
}{}
\begin{document}
\titlepage
\section{Sec 1}
\begin{frame}{Frame Title}{Frame Subtitle}
Frame contents
\begin{itemize}
\item Item 1
\item Item 2
\begin{itemize}
\item Subitem 2.1
\item Subitem 2.2
\end{itemize}
\end{itemize}
This is \textbf{bold text for normal text}.
\end{frame}
\section{Sec 2}
\begin{frame}{Frame Title}{Frame Subtitle}
\begin{block}{Block}
This is \textbf{bold text for blocks}.
\end{block}
\begin{alertblock}{Alert Block}
This is \textbf{bold text for alert blocks}.
\end{alertblock}
\begin{example}
This is \textbf{bold text for example blocks}.
\end{example}
\begin{block}{}
\centering
This is \textbf{bold text for unnamed blocks}.
\end{block}
\end{frame}
\end{document}
As easily seen, the sec 1 and sec 2 in the navigation bar seems to belong to a whole, long horizontal bar without any boundary between them. They share the same background color, just with the current one highlighted. I would like to make different background colors for them. Is that possible?
document
environment.