%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 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}

\usepackage[T1]{fontenc}
\usepackage{emerald}
\usepackage{mathpazo}	%
\usepackage{fontspec}	%

\usepackage[no-math]{fontspec}
\setmainfont[Mapping=tex-text]{Chalkduster}

\useoutertheme{blackboard}
\newfontfamily\chalkd{Chalkduster.ttf}	%
%\newfontfamily\chalkb{Chalkboard}	% 
 
\setsansfont{Chalkduster.ttf}
%\setmonofont{Chalkduster.ttf}


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

\mode<presentation>

% set text colors for different objects
%\setbeamercolor{frametitle}{fg=white}
%\setbeamercolor{structure}{fg=white}
%\setbeamercolor{normal text}{fg=white}
%\setbeamercolor{alerted text}{fg=white}
%\setbeamercolor{example text}{fg=white}

\setbeamercolor{normal text}{fg=white}		%
\setbeamercolor{alerted text}{fg=yellow!80}	%
\setbeamercolor{structure}{fg=yellow!80}	%
\setbeamercolor{frametitle}{fg=white}		%
\setbeamercolor{title}{fg=white}			%
\setbeamertemplate{blocks}[shadow=false]	%
\setbeamercolor{block body}{fg=normal text.bg!90!black}	%
\setbeamercolor{block body example}{bg=normal text.bg!90!black}	%

% set fonts
%\setbeamerfont{my frametitle}{size=\Huge, series=\ECFAugie}
%\setbeamerfont{framesubtitle}{size=\large, series=\ECFAugie}
%\setbeamerfont{title}{size=\huge, series=\ECFAugie}
%\setbeamerfont{author}{size=\large}
%\setbeamerfont{date}{size=\large}
%\setbeamerfont{institute}{size=\large}
%\setbeamerfont{caption}{series=\ECFAugie}
\setbeamerfont*{normal text}{family = \chalkd}
\setbeamerfont{alerted text}{family = \chalkd}
\setbeamerfont{structure}{family = \chalkd}
\setbeamerfont{title}{family = \chalkd, size = \Huge}