%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -*- Mode: Latex -*- %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% beamercolorthemetechnicolor.sty --- 
%% Author          : Marc Joye
%% Last Modified On: Sun Jul 24 22:50:08 2011
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newif\ifmj@black\mj@blackfalse
\ifx\undefined\mj@blackcolor\else
  \csname mj@black\mj@blackcolor\endcsname
\fi
\DeclareOptionBeamer{black}[true]{\csname mj@black#1\endcsname}
\newif\ifmj@boxes\mj@boxesfalse
\ifx\undefined\mj@boxescolor\else
  \csname mj@boxes\mj@boxescolor\endcsname
\fi
\DeclareOptionBeamer{boxes}[true]{\csname mj@boxes#1\endcsname}
\ProcessOptionsBeamer

% Cf. <http://www.warpgear.com/pan tone/index.php>
\definecolor{Gray}{RGB}{108,109,112}
\definecolor{Gray10}{RGB}{93,93,96}         % PMS Cool gray 10
\definecolor{Gray8}{RGB}{124,123,126}       % PMS Cool gray 8
\definecolor{Gray6}{RGB}{157,156,157}       % PMS Cool gray 6
\definecolor{Gray4}{RGB}{177,175,174}       % PMS Cool gray 4
\definecolor{Gray2}{RGB}{203,201,198}       % PMS Cool gray 2
\definecolor{Violet}{RGB}{211,107,198}      % PMS 252
\definecolor{MediumViolet}{RGB}{119,45,107} % PMS 255
\definecolor{Olive}{RGB}{186,216,10}        % PMS 382
\definecolor{MediumOlive}{RGB}{112,112,20}  % PMS 385


\mode<presentation>

\setbeamercolor{titlegraphic}{bg=Gray,fg=white}
\setbeamercolor{footline}{fg=Gray}
\setbeamercolor{separation line}{fg=Gray,bg=black}
\setbeamercolor{subtitle}{fg=Gray}

\setbeamercolor{item}{fg=structure.fg}
\setbeamercolor{sidebar left}{use=structure,bg=structure.fg!10}
\setbeamercolor{itemize subitem}{fg=Gray8}
\setbeamercolor{itemize subsubitem}{fg=Gray4}

\ifmj@black
  \setbeamercolor*{normal text}{fg=white,bg=black}
  \setbeamercolor*{structure}{fg=white}
  %\setbeamercolor*{background canvas}{bg=black}
\else
  \setbeamercolor*{normal text}{fg=black,bg=white}
  \setbeamercolor*{structure}{fg=black}
\fi

\ifmj@boxes
  \setbeamercolor{block title}{use=normal text,fg=normal text.bg,bg=normal text.fg!75!normal text.fg}
  \setbeamercolor{block title alerted}{use={normal text,alerted text},fg=normal text.bg,bg=alerted text.fg!75!normal text.fg}
  \setbeamercolor{block title example}{use={normal text,example text},fg=normal text.bg,bg=example text.fg!75!normal text.fg}
  \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!15!bg}
  \setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!15!bg}
  \setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!15!bg}
  \setbeamertemplate{blocks}[default]
\fi



\mode<all>
