%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Copyright 2011-2012 by Fiandrino Claudio
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\mode<presentation>

% Blue
\definecolor{navyblue}{cmyk}{0.94,0.54,0,0}
\definecolor{cerulean}{cmyk}{0.94,0.11,0,0}
\definecolor{processblue}{cmyk}{0.96,0,0,0}
% Green
\definecolor{forestgreen}{cmyk}{0.91,0,0.88,0.12}
\definecolor{yellowgreen}{cmyk}{0.48,0,0.72,0}
% Red
\definecolor{redorange}{cmyk}{0,0.77,0.87,0}
\definecolor{apricot}{cmyk}{0,0.32,0.52,0}

\DeclareOptionBeamer{color}{\def\beamer@torinoth@defcolor{#1}}
\ExecuteOptionsBeamer{color=blue}

\ProcessOptionsBeamer

% Blue colors
\def\beamer@torinoth@bluetext{blue}%
\ifx\beamer@torinoth@defcolor\beamer@torinoth@bluetext%

  \setbeamercolor*{palette primary}{fg=white,bg=processblue}
  \setbeamercolor*{palette secondary}{fg=navyblue,bg=processblue!20}

  \setbeamercolor*{titlelike}{fg=white,bg=processblue}
  \setbeamercolor*{frametitle}{fg=black,bg=black}
  \setbeamercolor*{item}{fg=cerulean}
  \setbeamercolor*{alerted text}{fg=cerulean}
  \def\beamer@torinoth@color{cerulean}
  
  \setbeamercolor{block body}{fg=black,bg=processblue!10}
  \setbeamercolor{block body alerted}{fg=black,bg=processblue!10}
  \setbeamercolor{block body example}{use=block title,fg=black,bg=processblue!10}
  \setbeamercolor{block title}{bg=processblue,fg=white}
  \setbeamercolor{block title alerted}{bg=processblue,fg=white}
  \setbeamercolor{block title example}{bg=processblue,fg=white}

\fi%

% Green colors
\def\beamer@torinoth@greentext{green}%
\ifx\beamer@torinoth@defcolor\beamer@torinoth@greentext%

  \setbeamercolor*{palette primary}{fg=white,bg=forestgreen}
  \setbeamercolor*{palette secondary}{fg=black,bg=yellowgreen}

  \setbeamercolor*{titlelike}{fg=white,bg=forestgreen}
  \setbeamercolor*{frametitle}{fg=black,bg=black}
  \setbeamercolor*{item}{fg=forestgreen}
  \setbeamercolor*{alerted text}{fg=forestgreen}
  \def\beamer@torinoth@color{forestgreen}
  
  \setbeamercolor{block body}{fg=black,bg= yellowgreen!20}
  \setbeamercolor{block body alerted}{fg=black,bg= yellowgreen!20}
  \setbeamercolor{block body example}{use=block title,fg=black,bg= yellowgreen!20}
  \setbeamercolor{block title}{bg= forestgreen,fg=white}
  \setbeamercolor{block title alerted}{bg= forestgreen,fg=white}
  \setbeamercolor{block title example}{bg= forestgreen,fg=white}

\fi%

% Red colors
\def\beamer@torinoth@redtext{red}%
\ifx\beamer@torinoth@defcolor\beamer@torinoth@redtext%

  \setbeamercolor*{palette primary}{fg=white,bg=redorange}
  \setbeamercolor*{palette secondary}{fg=black,bg=apricot}

  \setbeamercolor*{titlelike}{fg=white,bg=redorange}
  \setbeamercolor*{frametitle}{fg=black,bg=black}
  \setbeamercolor*{item}{fg=redorange}
  \setbeamercolor*{alerted text}{fg=redorange}
  \def\beamer@torinoth@color{redorange}
  
   \setbeamercolor{block body}{fg=black,bg= apricot!20}
  \setbeamercolor{block body alerted}{fg=black,bg= apricot!20}
  \setbeamercolor{block body example}{use=block title,fg=black,bg= apricot!20}
  \setbeamercolor{block title}{bg= redorange,fg=white}
  \setbeamercolor{block title alerted}{bg= redorange,fg=white}
  \setbeamercolor{block title example}{bg= redorange,fg=white}

\fi%

% Innertheme colors
\setbeamercolor*{title page header}{parent=palette primary}
\setbeamercolor*{ateneo page header}{parent=palette primary}

% Outertheme colors
\setbeamercolor*{footerbox}{parent=palette secondary}
\setbeamercolor*{titleline}{parent=palette primary}
\setbeamercolor*{page header}{parent=titlelike}
\setbeamercolor*{second header}{parent=palette secondary}
\setbeamercolor*{frame number}{parent=palette secondary}

\setbeamercolor*{separation line}{bg=white}
\setbeamercolor*{fine separation line}{bg=white}

\mode
<all>
