%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2010 Jasper Bosch (p.j.bosch@student.rug.nl)  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Some parts of this theme are based on the 'diepentheme' %
% by Guido Diepen <diepen@cs.uu.nl>                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{beamerthemeblackboard}

\RequirePackage{beamerbasethemes}[2004/10/07]
\RequirePackage{calc}
\RequirePackage{ifthen}
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage[no-math]{fontspec}
\RequirePackage{ragged2e}
\RequirePackage{graphics}
\RequirePackage[frenchb]{babel}
\RequirePackage{nicefrac}
\RequirePackage{xcolor}

\definecolor{ffgorange}{RGB}{239, 125, 55}

%\usepackage{emerald}
%\usepackage[no-math]{fontspec}
%\setmainfont[Mapping=tex-text]{ECFAugie}
%\usepackage[defaultmathsizes]{mathastext}	% pas obligatoire.
\useoutertheme{blackboard}
%\normalfont\ECFAugie

    %% This template uses typical OS X and Adobe fonts
    \defaultfontfeatures{Mapping=tex-text}  % This seems to be important for mapping glyphs properly

    \setmainfont{Chalkduster}            % Beamer ignores "main font" in favor of sans font
    \setsansfont{Chalkduster}            % This is the font that beamer will use by default
    % \setmainfont{Gill Sans Light}     % Prettier, but harder to read
    %\setnormalfont{Chalkduster}

    \setbeamerfont{title}{family=\fontspec{Chalkduster}}

% remove navigation symbols
\setbeamertemplate{navigation symbols}{}

\mode<presentation>

% Set text colors for different objects
% Set color for titles
\usecolortheme[named=white]{structure}
% Set color for the text
%\setbeamercolor{normal text}{fg=white}

\setbeamercolor{frametitle}{fg=white}
\setbeamercolor{structure}{fg=white}
\setbeamercolor{normal text}{fg=white}
\setbeamercolor{alerted text}{fg=white}
\setbeamercolor{example text}{fg=white}

% Set color for bullet
\setbeamercolor{enumerate item}{fg=white}
\setbeamercolor{enumerate subitem}{fg=white}
\setbeamercolor{enumerate subsubitem}{fg=white}
\setbeamercolor{itemize item}{fg=white}
\setbeamercolor{itemize subitem}{fg=white}
\setbeamercolor{itemize subsubitem}{fg=white}
\setbeamersize{text margin left=4ex}

% Set fonts
\setbeamerfont{frametitle}{size=\huge, family=\fontspec{Chalkduster}}
\setbeamerfont{framesubtitle}{size=\large, family=\fontspec{Chalkduster}}
\setbeamerfont{title}{size=\Huge, family=\fontspec{Chalkduster}}
\setbeamerfont{subtitle}{size=\large, family=\fontspec{Chalkduster}}
\setbeamerfont{author}{size=\Large, family=\fontspec{Chalkduster}}
\setbeamerfont{date}{size=\tiny, family=\fontspec{Chalkduster}}
\setbeamerfont{institute}{size=\footnotesize, family=\fontspec{Chalkduster}}
\setbeamerfont{caption}{family=\fontspec{Chalkduster}}
\setbeamerfont{enumerate item}{family=\fontspec{Chalkduster}}
\setbeamerfont{itemize item}{family=\fontspec{Chalkduster}}