[Tex/LaTex] Customize mini frame navigation

beamercolormini-framesnavigation

I'm trying to create my own beamer theme; I want to use a mini frame navigation in headline (included by using \insertnavigation) but the colors not working as I want them yet.

Here´s the output of my headline:

enter image description here

When going forward in the presentation, the current active section is shown in black. How can I change its color to the gold I've already used?

Also I´d like to change the shading of inactive sections to get them a little brighter than they are at the moment.

Here´s the important part of my colortheme.sty and the outertheme.sty:

% Setzt Deep Harlequin (dunkler)  
\definecolor{jvagreen}{RGB}{22, 89, 0}

% Setzt Vivid Gold (dunkler)
\definecolor{jvagold}{RGB}{231, 202, 0}

% Farbe der Elemente der headline
\setbeamercolor{section in head/foot}{fg = jvagold, bg = jvagreen}

=====================================================================

% Komprimiert die miniframe Kreise auf eine Linie
\beamer@compresstrue


% Definiert die headline
\setbeamertemplate{headline}
{ 
\usebeamercolor{seperation line}
% Bindet die Grafik ein
\includegraphics[width=0.15\paperwidth]{Wappen_JvA}
\begin{beamercolorbox}[wd=.85\paperwidth,right]{section in head/foot}
    \rule{0.85\paperwidth}{1pt}
    %Vertikaler Abstand
    \vskip10pt
    %Fügt die Standard-Navi ein (miniframes)
    \insertnavigation{0.85\paperwidth}
    \vskip8pt
    \rule{0.85\paperwidth}{0.5pt}
    \vskip7.5pt
    % Horizontaler Abstand
    \leftskip=10pt
    % Fügt den frametitle an dieser Stelle ein
    \insertframetitle
    \vskip20pt
    \leftskip=0pt
    \rule{0.85\paperwidth}{1pt}
\end{beamercolorbox} 
}

If you have any ideas on how to change it in the way I want it to be or suggestions / improvements to my code, please let me know 😉

Best Answer

As said in the comments, the right way to proceed is to define separately the two templates headline and frametitle.

Here is a possible implementation (as test image I used the logo of my university):

\documentclass{beamer}
\usepackage{lmodern}
%=====================================================================
% Color definition

% Setzt Deep Harlequin (dunkler)  
\definecolor{jvagreen}{RGB}{22, 89, 0}

% Setzt Vivid Gold (dunkler)
\definecolor{jvagold}{RGB}{231, 202, 0}

% Farbe der Elemente der headline
\setbeamercolor{section in head/foot}{fg = jvagold, bg = jvagreen}

%=====================================================================
% Templates - headline, frametitle

\makeatletter
% Komprimiert die miniframe Kreise auf eine Linie
\beamer@compresstrue
\makeatother

% Definiert die headline
\setbeamertemplate{headline}
{ 
\includegraphics[width=0.15\paperwidth]{logopolito} % test logo
\begin{beamercolorbox}[wd=.85\paperwidth,right]{section in head/foot}
    \rule{0.85\paperwidth}{1pt}
    %Vertikaler Abstand
    \vskip10pt
    %Fügt die Standard-Navi ein (miniframes)
    \insertnavigation{0.85\paperwidth}
    \vskip8pt
    \rule{0.85\paperwidth}{0.5pt}
    \vskip27.5pt % same height of the example provided, but IMHO is too much
    \rule{0.85\paperwidth}{1pt}
\end{beamercolorbox} 
}

% definition of the frametitle
\setbeamertemplate{frametitle}
{
\vskip-24pt % to shift up the frametitle
\hbox{ 
 \begin{beamercolorbox}[wd=.0675\textwidth]{} % left shift
 \end{beamercolorbox} 
 \begin{beamercolorbox}[sep=4pt]{section in head/foot}
 \insertframetitle
 \end{beamercolorbox} 
 }
}

\begin{document}
\section{Test 1}
\subsection{first}
\begin{frame}{A title}
hello
\end{frame}

\subsection{second}
\begin{frame}{A second title}
hello
\end{frame}

\section{Test 2}
\subsection{first}
\begin{frame}{Another title}
hello
\end{frame}

\subsection{second}
\begin{frame}{A second title}
hello
\end{frame}

\section{Test 3}
\subsection{first}
\begin{frame}{Last title}
hello
\end{frame}

\subsection{second}
\begin{frame}{A second title}
hello
\end{frame}

\subsection{second}
\begin{frame}{A third title}
hello
\end{frame}
\end{document}

The final result is:

enter image description here