% adapted by ule from beamerouterthemeinfolines.sty

\mode<presentation>

%%\setbeamercolor*{author in head/foot}{parent=palette tertiary}

%\setbeamercolor*{ulesfootlinecolors}{fg=white,bg=gray}
\setbeamercolor*{ulesfootlinecolors}{fg=gray,bg=white}

\setbeamercolor*{ulessidebarcolors}{fg=white,bg=ulesred}


% the following defines a grey footline on white ground: 
% \defbeamertemplate*{footline}{Ules theme}
% {
%   \leavevmode%
%   \hbox{%
%   \begin{beamercolorbox}[wd=.9\paperwidth,ht=2.25ex,dp=1ex,left]{ulesfootlinecolors}%
%     \usebeamerfont{author in head/foot}\hspace{0.3cm}\insertshortauthor: \insertshorttitle. \insertshortdate
%   \end{beamercolorbox}%
%   \begin{beamercolorbox}[wd=.09\paperwidth,ht=2.25ex,dp=1ex,right]{ulesfootlinecolors}%
% %    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em}
%     \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
%   \end{beamercolorbox}}%
%   \vskip0pt%
% }


% this produces a colored bar on the top of the slide: 
%   \defbeamertemplate*{headline}{Ules theme}
%   {%
%     \begin{beamercolorbox}[wd=\paperwidth]{ulessidebarcolors}
% write something
% \hfill
%     \end{beamercolorbox}
%   }

% this produces a colored side bar on the left side of the slide
\setbeamersize{sidebar width left=0.3cm} 
\defbeamertemplate*{sidebar left}{Ules theme}
{%
  \begin{beamercolorbox}[wd=0.3cm,ht=\paperheight]{ulessidebarcolors}
\begin{center}
\bf 
    \rotatebox{90}{\makebox[9cm]{\hspace{0.5cm} \insertshortauthor: \insertshorttitle \hfill \insertshortdate}}
\insertframenumber{} %\inserttotalframenumber 
% \hfill
\end{center}   
  \end{beamercolorbox}
}



\setbeamersize{text margin left=1em,text margin right=1em}

\mode
<all>
