\ProvidesPackage{beamerthememinimal}[2017/04/28 Inspired by a presentation from Rio Tinto]
\usepackage{lastpage}
\mode<presentation>
%\newcommand{\versioninformation}{}

\definecolor{maincolour}{HTML}{00A400}  % darkgreen
\definecolor{modelinecolour}{HTML}{483D8B} % dark slate blue
\definecolor{modelinebgcolour}{HTML}{104E8B} % dodger blue 4
% background
\setbeamertemplate{background}{
  \begin{tikzpicture}
  \useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
   \node[inner sep=0pt,above,left] (ucllogo) at (\paperwidth,8pt) {\includegraphics[height=10pt]{ucl-white-transparent}};
  \ifnum\thepage>1\relax%
  \node[above,right] (pagenumber) at (0,1.2ex) {{\tiny\color{lightgray} \thepage/\pageref{LastPage}
      ~\insertsectionhead
      \ifdef{\versioninformation}{~\color{gray}\versioninformation}{}}};
  \fi
  \end{tikzpicture}
}

% colours
\setbeamercolor{structure}{fg=maincolour}
%\setbeamercolor{block title alerted}{fg=maincolour}
\setbeamercolor{background canvas}{bg=black,fg=white} 
\usebeamercolor[fg]{background canvas}
\setbeamercolor{block title}{fg=maincolour}
\setbeamercolor{block body}{fg=white}
\setbeamercolor{frametitle}{fg=white}
\setbeamercolor{item}{fg=maincolour}
\setbeamercolor*{normal text}{fg=white,bg=black}
\setbeamercolor*{alerted text}{fg=maincolour}
\setbeamercolor{section in toc}{fg=maincolour}
\setbeamercolor{subsection in toc}{fg=maincolour}
\setbeamercolor*{title}{fg=white}
\setbeamercolor*{title page header}{fg=white}
% fonts
\setbeamerfont{frametitle}{series=\bfseries}
\setbeamerfont{title}{size=\Large,series=\bfseries}

\setbeamertemplate{items}[ball]
\setbeamertemplate{navigation symbols}{}

\mode <all>
