% Copyright 2007 by Till Tantau
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file LICENSE.md for more details.

\mode<presentation>

\setbeamertemplate{headline}[text line]
{%
  \vbox{%
    \vskip3pt%
    \beamerline{\insertnavigation{\paperwidth}}%
    \vskip1.5pt%
    \insertvrule{0.4pt}{beamerstructure!50!averagebackgroundcolor}%
    \vskip1.5pt%
    \tinyline{\color{beamerstructure}\insertsubsection\hfill}
    \insertvrule{4pt}{beamerstructure!50!averagebackgroundcolor}%
  }%
}

                                % Footline
\setbeamertemplate{footline}[text line]
{%
  \ifbeamertemplateempty{logo}
  {%
    \vbox{%
      \setbox\beamer@tempbox=\hbox{\tiny\insertshortauthor: \insertshorttitle\hskip1.5cm\insertshortinstitute}%
      \ifdim\wd\beamer@tempbox>\paperwidth%
        \insertvrule{4pt}{beamerstructure!50!averagebackgroundcolor}%
        \vskip1.5pt
        \tinyline{\color{beamerstructure}\insertshortauthor:\hfill\insertshortinstitute}%
        \tinyline{\color{beamerstructure}\insertshorttitle\hfill\lower1pt\hbox{\insertnavigationsymbols}}%
      \else%
        \setbox\beamer@tempbox=\hbox{\beamerline{\hbox to\paperwidth{\hfill\lower1pt\hbox{\insertnavigationsymbols}}}}%
        \ht\beamer@tempbox=0pt%
        \box\beamer@tempbox%
        \insertvrule{4pt}{beamerstructure!50!averagebackgroundcolor}%
        \vskip1.5pt
        \tinyline{\color{beamerstructure}\insertshortauthor: \insertshorttitle\hfill\insertshortinstitute}%
      \fi}%
  }
  {%
    \vbox{%
      \insertvrule{4pt}{beamerstructure!50!averagebackgroundcolor}%
      \vskip1.5pt%
      \setbox\beamer@logobox=\hbox{\lower1pt\hbox{\usebeamertemplate*{logo}}}%
      \tinyline{\color{beamerstructure}\insertshortauthor:\hfill}%
      \tinyline{\color{beamerstructure}\insertshorttitle\hfill\lower1pt\hbox{\insertnavigationsymbols}\hskip0.1cm\hbox{\dp\beamer@logobox=0pt\ht\beamer@logobox=0pt\box\beamer@logobox}
      }%
    }%
  }%
}



\userightsidebartemplate{0cm}{}

\mode
<all>
