% Beamer Jacobs slide theme; some hints from CXL's DFKI theme included
%
% (C) 2009 Michael Kohlhase <m.kohlhase@jacobs-university.de.

\ProvidesPackage{beamerthemeJacobs}
\typeout{Beamer KWARC theme}
\author[Kohlhase]{Michael Kohlhase}
\institute{\texttt{http://kwarc.info/kohlhase}\\
  Computer Science\\
  Jacobs University Bremen, Germany}

\mode
<presentation>

%% Shadings and logo images
\pgfdeclareimage[height=.5ex,width=113mm]{shade-l2r}{shading-l2r}
\pgfdeclareimage[height=2ex]{jacobslogo}{jacobs-logo}
\pgfdeclareimage[height=2ex]{cclogo}{cc_somerights}

%% Headers flushed to the left.
\setbeamertemplate{frametitle}[default][left]


%% Add the line below the header
\addtobeamertemplate{frametitle}{}{\hspace*{-1cm} %
  \begin{pgfpicture}{0cm}{0cm}{128mm}{2mm}
    \pgfputat{\pgforigin}{\pgfbox[left,bottom]{\pgfuseimage{shade-l2r}}}
  \end{pgfpicture}
 }

\setbeamertemplate{footline}[text line]{%
  \usebeamercolor[fg]{titlelike}
  \strut\hspace*{2cm}\insertshortauthor: \insertshorttitle\hfill{}%
  \insertframenumber\hfill\insertshortdate\hspace*{3cm}%
  }
 \addtobeamertemplate{footline}{ %
   \begin{pgfpicture}{0cm}{0cm}{128mm}{0mm} %
     \pgfputat{\pgfpoint{126mm}{1mm}}{\pgfbox[right,top]{\pgfuseimage{jacobslogo}}} %
     \pgfputat{\pgfpoint{10mm}{1mm}}{\pgfbox[right,top]{\pgfuseimage{cclogo}}} %
   \end{pgfpicture}}{}

%% Turn off the navigation symbols
\setbeamertemplate{navigation symbols}{}

%% Inner theme
\useinnertheme{default}
%\setbeamertemplate{enumerate item}{(\alph{enumi})}
%\setbeamertemplate{enumerate subitem}{(\roman{enumii})}

%% Big logo for the title page.
%\pgfdeclareimage[height=1cm]{biglogo}{beamer/img/DFKI-SKS}
%\titlegraphic{\pgfuseimage{biglogo}}

\mode
<all>

%% Redefine various margin sizes 
\setbeamersize{text margin left=3mm}
\setbeamersize{text margin right=3mm}
\setlength\leftmargini{1em}
\setlength\leftmarginii{1em}
\setlength\leftmarginiii{1em}
\newcommand{\vstretch}[1]{\vspace*{\stretch{#1}}}
\beamer@descriptionwidth=1cm


