% Copyright 2021 by Jan Benda
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%

\ProvidesPackage{beamercolorthemeut}[2021/02/28 color theme for cooperate design of the University of Tuebingen]

% UT primary colors:
\definecolor{utred}{rgb}{0.647,0.118,0.216}
\definecolor{utgold}{rgb}{0.706,0.627,0.412}
\definecolor{utblack}{rgb}{0.196,0.255,0.294}

% UT secondary colors:
\definecolor{utdarkblue}{rgb}{0.255,0.353,0.549}
\definecolor{utblue}{rgb}{0.000,0.412,0.667}
\definecolor{utlightblue}{rgb}{0.314,0.667,0.784}
\definecolor{utcyan}{rgb}{0.510,0.725,0.627}
\definecolor{utgreen}{rgb}{0.490,0.647,0.294}
\definecolor{utdarkgreen}{rgb}{0.196,0.431,0.118}
\definecolor{utlightred}{rgb}{0.784,0.314,0.235}
\definecolor{utmagenta}{rgb}{0.686,0.431,0.588}
\definecolor{utgray}{rgb}{0.706,0.627,0.588}
\definecolor{utlightorange}{rgb}{0.843,0.706,0.412}
\definecolor{utorange}{rgb}{0.824,0.588,0.000}
\definecolor{utbrown}{rgb}{0.569,0.412,0.275}

\mode<presentation>

% inner colors:

\setbeamercolor{normal text}{fg=utblack, bg=}
%\setbeamercolor{math text}{parent={normal text}}  % this kills coloring of \url{}

\setbeamercolor{structure}{fg=utblue}
\setbeamercolor{alerted text}{fg=utred}

\setbeamercolor{itemize item}{parent={normal text}, fg=utblack!60}
\setbeamercolor{itemize subitem}{parent={normal text}, fg=utblack!60}

\setbeamercolor{enumerate item}{parent={normal text}, fg=utblack!80}
\setbeamercolor{enumerate subitem}{parent={normal text}, fg=utblack!80}

\setbeamercolor{titlelike}{parent={normal text}, fg=utblack}

\setbeamercolor{frametitle}{parent={titlelike}}
\setbeamercolor{framesubtitle}{parent={titlelike}}
\setbeamercolor{frametitle line}{fg=utgold}

\setbeamercolor{block title}{fg=white, bg=utlightblue}
\setbeamercolor{block body}{fg=normal text.fg, bg=utlightblue!15}
\setbeamercolor{block line top}{fg=}
\setbeamercolor{block line middle}{fg=}
\setbeamercolor{block line bottom}{fg=}

\setbeamercolor{block title alerted}{parent={block title}, bg=utred}
\setbeamercolor{block body alerted}{fg=utred, bg=utred!10}
\setbeamercolor{block line alerted top}{fg=}
\setbeamercolor{block line alerted middle}{fg=}
\setbeamercolor{block line alerted bottom}{fg=}

\setbeamercolor{block title example}{parent={block title}, bg=utgreen}
\setbeamercolor{block body example}{fg=normal text.fg, bg=utgreen!30}
\setbeamercolor{block line example top}{fg=}
\setbeamercolor{block line example middle}{fg=}
\setbeamercolor{block line example bottom}{fg=}

\addtobeamertemplate{proof begin}{%
  \setbeamercolor{block title}{fg=white, bg=utmagenta}
}{}

\addtobeamertemplate{theorem begin}{%
  \setbeamercolor{block title}{fg=white, bg=utorange}
}{}

\setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}}

\setbeamercolor{title}{parent={titlelike}, fg=utred}
\setbeamercolor{subtitle}{parent={title}}
\setbeamercolor{author}{parent={normal text}}
\setbeamercolor{institute}{parent={normal text}}

\setbeamercolor{title page}{parent={normal text}}
\setbeamercolor{title page graphic line}{fg=utred}
\setbeamercolor{title page title line}{fg=}

\setbeamercolor{section name}{parent={titlelike}}
\setbeamercolor{section name separator}{fg=utgold}
\setbeamercolor{section title}{parent={titlelike}}

\setbeamercolor{subsection name}{parent={titlelike}}
\setbeamercolor{subsection name separator}{fg=utgold}
\setbeamercolor{subsection title}{parent={titlelike}}

% outer colors:

\setbeamercolor{background}{bg=}

\setbeamercolor{footline}{fg=utgray, bg=}
\setbeamercolor{footline line}{parent={footline}}
\setbeamercolor{footline separator}{parent={footline}}

% hyper ref colors:

\hypersetup{colorlinks=true, allcolors=utblue}

\mode
<all>
