% Copyright 2014 by Francisco Coelho
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%


%
%	(fc:) Not sure what the next command does...
%
%\@ifundefined{beamer@cta@do}{}{\beamer@cta@do}
%
\newif\ifstrongtitles
\strongtitlesfalse
%
\DeclareOptionBeamer{strongtitles}[true]{\csname strongtitles#1\endcsname}
\ProcessOptionsBeamer

\mode<presentation>

%
%
%	Define UE colors
%
\definecolor{ue-red}{RGB}{158 27 50}
\definecolor{ue-gray}{RGB}{88 89 91}
\definecolor{ue-grey}{RGB}{88 89 91}
\definecolor{ue-black}{RGB}{0 0 0}
%
%
%	Basic text elements
%
\setbeamercolor*{normal text}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=ue-red,bg=white}
\setbeamercolor*{title}{fg=ue-red,bg=white}
\ifstrongtitles
	\setbeamercolor*{frametitle}{
		fg=white,
		bg=ue-red
	}
\else
	\setbeamercolor*{frametitle}{
		fg=ue-red,
		bg=white
	}
\fi
%
%
%	Frame constant elements
%

% \setbeamercolor*{separation line}{}
% \setbeamercolor*{fine separation line}{}
%
%
%	Structures (lists, etc)
%
\setbeamercolor*{structure}{fg=ue-grey}
%\setbeamercolor{item projected}{fg=black}
%
%
%	Frame block elements (theorems, etc)
%
\setbeamercolor*{block body}{bg=normal text.bg!90!black}
\setbeamercolor*{block body alerted}{bg=normal text.bg!90!black}
\setbeamercolor*{block title}{parent=structure,bg=ue-red,fg=white}
\setbeamercolor*{block title alerted}{
	use={normal text,alerted text},
	fg=alerted text.fg!75!normal text.fg,
	bg=normal text.bg!75!black}
%
%
%	Examples
%
\setbeamercolor*{example text}{fg=ue-grey!75!black}
%
\setbeamercolor*{block body example}{bg=normal text.bg!90!black}
\setbeamercolor*{block title example}{
	use={normal text,example text},
	fg=ue-red!75!normal text.fg,
	bg=normal text.bg!75!black
}
%
%
%	Palettes
%
\setbeamercolor{palette primary}{
	use={structure,normal text},
	fg=structure.fg,
	bg=normal text.bg!75!black
}
%
\setbeamercolor{palette secondary}{
	use={structure,normal text},
	fg=structure.fg,
	bg=normal text.bg!60!black
}
%
\setbeamercolor{palette tertiary}{
	use={structure,normal text},
	fg=structure.fg,
	bg=normal text.bg!45!black
}
%
\setbeamercolor{palette quaternary}{
	use={structure,normal text},
	fg=structure.fg,
	bg=normal text.bg!30!black
}
%
%
%	Sidebar stuff
%
\setbeamercolor*{sidebar}{parent=palette primary}
\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}
%
%
%
\mode<all>
