\ProvidesPackage{beamerthemeSFB}

\usepackage[hooks, fitting]{tcolorbox}
\tcbuselibrary{skins}

\RequirePackage{xcolor}
%
% Kuler Blue Sky colors
\definecolor{RostRot}{RGB}{172,24,0}
\definecolor{BoxBlue}{RGB}{9,61,127}
\definecolor{TextBackground}{RGB}{204,150,52}
\definecolor{dgdblue}{RGB}{0,80,245}
%\definecolor{dgdblue}{RGB}{0,116,245}
%\definecolor{dgdblue}{RGB}{54,116,195}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{tangocolors}
\selectcolormodel{cmyk}
\mode<presentation>

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Headline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\setbeamercolor{title in headline}{fg=dgdblue}
%\setbeamercolor{author in headline}{fg=dgdblue!80!white}
%\setbeamercolor{institute in headline}{fg=dgdblue!90!white}
\setbeamercolor{headline}{fg=white,bg=dgdblue}


\setbeamertemplate{headline}{  
  \leavevmode

  \begin{beamercolorbox}[wd=\paperwidth]{headline}
    \begin{columns}
      \begin{column}{.02\paperwidth}
      \end{column}
      \begin{column}{.30\paperwidth}

        \vspace{2.5cm}
        \begin{figure}
          \parbox{.18\textwidth}{\includegraphics[width=.18\textwidth]{TUB-logo-white}}
          \hfill
          \parbox{.24\textwidth}{\includegraphics[width=.24\textwidth]{TUM-logo-white}}
          \hfill
          \parbox{.12\textwidth}{\includegraphics[width=.12\textwidth]{FUB-logo-white}}
          \hfill
          \parbox{.11\textwidth}{\includegraphics[width=.11\textwidth]{TUW-logo-white}}
          \hfill
          \parbox{.22\textwidth}{\includegraphics[width=.22\textwidth]{TUG-logo-white}}
        \end{figure}
        \vspace{2.5cm}

      \end{column}
      \begin{column}{.32\paperwidth}
        \vskip4ex
        \raggedleft
        \usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[1ex]}
        \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[1ex]}
%        \usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}\\[1ex]}
        \vspace{1mm}
      \end{column}
      \begin{column}{.33\paperwidth}
        \vskip0.7cm
        \raggedleft
        \includegraphics[height=5cm]{images/DGD_Logo_white.pdf}
      \end{column}
      \begin{column}{.01\paperwidth}
      \end{column}
    \end{columns}
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\setbeamercolor*{normal text}{fg=tachameleon, bg=dgdblue!5!white}
\setbeamercolor*{block body}{bg=ta3aluminium,fg=black}
\setbeamercolor*{block title}{fg=taorange,bg=ta2gray}
\setbeamerfont{block title}{size=\large,series=\bf}
\setbeamerfont{block body}{size=\large,series=\tt, family=\tt}

\setbeamercolor{upper separation line head}{fg=white}

%\setbeamercolor{example text}{fg=taorange}
\setbeamercolor{structure}{fg=ta3skyblue}

\setbeamercolor{item}{fg=red}
\setbeamertemplate{itemize items}[triangle]
\setbeamertemplate{navigation symbols}{}  % no navigation on a poster

\newtcolorbox{leftbox}[2][]{
  left=1cm,
  right=1cm,
  top=1cm,
  bottom=1cm,
  colback=white,
  colframe=dgdblue!75!black,
  fonttitle=\bfseries,
  colbacktitle=dgdblue!85!black,
  enhanced, 
  attach boxed title to top left={xshift=5mm, yshift=-4mm},
  title=#2\phantom{g}\hspace{-1ex},
  #1 
}%

\newtcolorbox{rightbox}[2][]{
  left=1cm,
  right=1cm,
  top=1cm,
  bottom=1cm,
  colback=white,
    colframe=dgdblue!75!black,
    fonttitle=\bfseries,
    colbacktitle=dgdblue!85!black,
    enhanced, 
    attach boxed title to top right={xshift=-5mm, yshift=-4mm},
    title=#2,
    #1 
}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% footline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamercolor{footline}{fg=tabutter, bg=ta3gray}
\setbeamerfont{footline}{size=\large,series=\tt}
\setbeamercolor{separation line}{bg=white}

\setbeamercolor{author in head/foot}{fg=dgdblue!10!white, bg=dgdblue!85!black}
\setbeamercolor{title in head/foot}{bg=dgdblue!10!white, fg=dgdblue!85!black}

\setbeamertemplate{footline}{
  \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
    \rule{0pt}{2pt}
  \end{beamercolorbox}
  
  \leavevmode%
%  \hbox{\begin{beamercolorbox}[wd=.7\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm plus1fill,rightskip=.3cm]{author in head/foot}%
%      \texttt{http://www.discretization.de/projects/A08}
%    \end{beamercolorbox}%
%    \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.5ex,dp=1.125ex,leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
%      \texttt{<surname>@math.tu-berlin.de}
%    \end{beamercolorbox}}%
  \vskip0pt%
  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot}
    \rule{0pt}{2pt}
  \end{beamercolorbox}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<all>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables: 
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-master: "SFB_poster"
%%% End: 
