\mode <presentation>

\font\myfont=ecbauhaus at 18pt

\pgfdeclareimage[height=30pt]{header-left}{linutronix-left}
\pgfdeclareimage[height=20pt]{header-right}{linutronix-right}
\definecolor{linutronix}{RGB}{242,130,20}
\definecolor{linutronix right}{RGB}{198,103,10}
\definecolor{linublack}{RGB}{50,50,50}
\setbeamercolor*{structure}{fg=linutronix,bg=white}
\setbeamercolor{normal text}{fg=linublack,bg=white}
\setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=linutronix}
\setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg}
\setbeamercolor*{palette primary}{fg=white,bg=linutronix}

%\pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{\paperheight}{%
%  color(0pt)=(linutronix right);
%  color(\paperwidth)=(frametitle.bg)
%}


\defbeamertemplate*{headline}{linutronix theme}
{
	\vskip5pt
        \pgfuseimage{header-left} \hskip10pt \hfill%
        \myfont \textcolor{gray}{\insertsection} \hfill%
        \pgfuseimage{header-right}
	\vskip10pt
}

\defbeamertemplate*{footline}{linutronix theme}
{
    \vskip5pt
    \begin{beamercolorbox}[ht=1pt]{author in head/foot}%
    \end{beamercolorbox}
    \vskip6pt
    \hskip5pt
    \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
    \hfill%
    {\usebeamerfont{institute in head/foot}\insertshortinstitute}%
    \hfill%
    \hskip20pt
    {\usebeamerfont{title in head/foot}\insertframenumber}%
    \hskip5pt ~
    \vskip5pt
}

\mode <all>

