% arguelles v1.2.1
% Copyright (c) 2020 Michele Piazzai. Contact: michele.piazzai@uc3m.es
% This work is released under the MIT License and is free to use, copy, modify,
% merge, publish, distribute, sublicense, and/or sell. See LICENSE for details.

\mode<presentation>

% Settings
\setbeamertemplate{itemize item}{$\bullet$}
\setbeamertemplate{itemize subitem}{$\circ$}
\setbeamertemplate{itemize subsubitem}{\textbullet}
\setbeamertemplate{blocks}[rounded]

% Background
\BeforeBeginEnvironment{frame}{
 \setbeamertemplate{background}{
  \begin{tikzpicture}
   \useasboundingbox (0,0) rectangle (\the\paperwidth,\the\paperheight);
   \ifnum\thepage>1\relax
    \fill[cultured] (0,.2em) rectangle (\the\paperwidth,\the\paperheight-.2em);
   \fi
  \end{tikzpicture}
 }
}

% Title page
\defbeamertemplate*{title page}{Arguelles}{
 \vfill\begin{beamercolorbox}{inverted text}
  {\usebeamerfont{title}\inserttitle}\par
  {\usebeamerfont{subtitle}\insertsubtitle}\par\bigskip
  {\usebeamerfont{date}\insertdate}\par\bigskip
  {\usebeamerfont{author}\insertauthor}\par\smallskip
  {\usebeamerfont{institute}\insertinstitute}
 \end{beamercolorbox}
}

% Standout frame
\providebool{Arguelles@standout}
\define@key{beamerframe}{standout}[true]{
 \booltrue{Arguelles@standout}
 \begingroup
 \setbeamertemplate{background}{}
 \beamer@frametopskip=0pt plus 1fill\relax%
 \beamer@framebottomskip=0pt plus 1.25fill\relax%
 \color{structure.bg}
 \large\centering
}
\pretocmd{\beamer@reseteecodes}{
 \ifbool{Arguelles@standout}{
  \endgroup\boolfalse{Arguelles@standout}
 }{}
}{}{}

\mode<all>
