[Tex/LaTex] Modification of Beamer theme

beamerthemes

I would like to modify this theme.

\documentclass{beamer}

\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer

\mode<presentation>

\useoutertheme[footline=authortitle]{miniframes}
\useinnertheme{circles}
\usecolortheme{whale}
\usecolortheme{orchid}

\definecolor{beamer@blendedblue}{rgb}{0.137,0.466,0.741}

\setbeamercolor{structure}{fg=beamer@blendedblue}
\setbeamercolor{titlelike}{parent=structure}
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{title}{fg=black} \setbeamercolor{item}{fg=black}

\mode <all>

\begin{document}
\begin{frame}
\frametitle{Task}
Task.
\end{frame}
\end{document}

I would be glad to get different footer in this way. I would like to have exactly the same one as it is used in Torine style (downloaded from http://blog.barisione.org/2007-09/torino-a-pretty-theme-for-latex-beamer/) with the only little change, where the three stripes would start on the left and go to the right (the number page is then also on the left). Does anyone know how to modify this?

Best Answer

Simply copy the definition of the footline template and introduce the desired modifications:

\documentclass{beamer}

\makeatletter
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer

\mode<presentation>

\useoutertheme[footline=authortitle]{miniframes}
\useinnertheme{circles}
\usecolortheme{whale}
\usecolortheme{orchid}

% Colors.
\definecolor{beamer@blendedblue}{rgb}{0.137,0.466,0.741}

\setbeamercolor{structure}{fg=beamer@blendedblue}
\setbeamercolor{titlelike}{parent=structure}
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{title}{fg=black} \setbeamercolor{item}{fg=black}

% The footline template is a modification of the one used in the
% Torino theme, Copyright 2007 by Marco Barisione
\setbeamercolor*{lineup}{parent=palette primary}
\setbeamercolor*{linemid}{parent=palette secondary}
\setbeamercolor*{linebottom}{parent=palette tertiary}
\setbeamercolor*{page header}{parent=titlelike}
\mode <all>

% some lengths (the height of the lines)
\newlength{\beamer@decolines@linemid}
\setlength{\beamer@decolines@linemid}{.015\paperheight}

\newlength{\beamer@decolines@lineup}
\setlength{\beamer@decolines@lineup}{.025\paperheight}

\newlength{\beamer@decolines@linebottom}
\setlength{\beamer@decolines@linebottom}{.01\paperheight}


% String used between the current page and the total page count.
\def\beamer@decolines@pageofpages{/}

\defbeamertemplate*{footline}{decolines theme}
{
  \leavevmode%
  % First line.
  \hbox{%
  \begin{beamercolorbox}[wd=.8\paperwidth,ht=\beamer@decolines@lineup,dp=0pt]{lineup}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.2\paperwidth,ht=\beamer@decolines@lineup,dp=0pt,right]{}%
    \hbox{\usebeamerfont{palette primary}\footnotesize\insertframenumber{} \beamer@decolines@pageofpages{} \inserttotalframenumber\hspace*{2ex}}%
  \end{beamercolorbox}%
  } %
  % Second line.
  \hbox{%
  \begin{beamercolorbox}[wd=\paperwidth,ht=\beamer@decolines@linemid,dp=0pt]{linemid}%
  \end{beamercolorbox}%
  } %
  % Third line.
  \hbox{%
  \begin{beamercolorbox}[wd=.9\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{linebottom}%
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.1\paperwidth,ht=\beamer@decolines@linebottom,dp=0pt]{}%
  \end{beamercolorbox}%
  }%
}
\makeatother

\setbeamertemplate{navigation symbols}{}

\begin{document}
\begin{frame}
\frametitle{Task}
Task.
\end{frame}
\end{document}

enter image description here