% Copyright 2021 by Jan Benda
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% "aptero" is a nick name for "Apteronotus" - a genus of weakly electric fish.

\ProvidesPackage{beamercolorthemeaptero}[2021/02/28 color theme for lines inner and outer beamer theme]

\newif\if@beamer@colors@set
\DeclareOptionBeamer{noset}{\@beamer@colors@setfalse}
\DeclareOptionBeamer{set}{\@beamer@colors@settrue}
\ExecuteOptionsBeamer{set}
\ProcessOptionsBeamer

% muted colors:
\definecolor{red}{rgb}{0.753,0.153,0.090}
\definecolor{orange}{rgb}{0.969,0.502,0.090}
\definecolor{yellow}{rgb}{0.941,0.843,0.188}
\definecolor{lightgreen}{rgb}{0.667,0.718,0.106}
\definecolor{green}{rgb}{0.251,0.502,0.125}
\definecolor{darkgreen}{rgb}{0.000,0.439,0.188}
\definecolor{cyan}{rgb}{0.251,0.655,0.529}
\definecolor{lightblue}{rgb}{0.000,0.529,0.592}
\definecolor{blue}{rgb}{0.125,0.376,0.655}
\definecolor{purple}{rgb}{0.325,0.216,0.608}
\definecolor{magenta}{rgb}{0.529,0.216,0.439}
\definecolor{pink}{rgb}{0.816,0.188,0.314}
\definecolor{white}{rgb}{1.000,1.000,1.000}
\definecolor{gray}{rgb}{0.627,0.627,0.627}
\definecolor{black}{rgb}{0.000,0.000,0.000}

\mode<presentation>

% inner colors:

\setbeamercolor{normal text}{fg=black, bg=}
%\setbeamercolor{math text}{parent={normal text}}  % this kills coloring of \url{}

\setbeamercolor{structure}{fg=blue}
\setbeamercolor{alerted text}{fg=red}

\setbeamercolor{titlelike}{parent={normal text}, fg=blue}

\setbeamercolor{frametitle}{parent={titlelike}}
\setbeamercolor{framesubtitle}{parent={titlelike}}
\setbeamercolor{frametitle line}{fg=blue}

\setbeamercolor{itemize item}{parent={normal text}}
\setbeamercolor{itemize subitem}{parent={normal text}}

\setbeamercolor{enumerate item}{parent={normal text}}
\setbeamercolor{enumerate subitem}{parent={normal text}}

\setbeamercolor{block title}{fg=white, bg=blue}
\setbeamercolor{block body}{fg=normal text.fg, bg=blue!20}
\setbeamercolor{block line top}{fg=}
\setbeamercolor{block line middle}{fg=blue}
\setbeamercolor{block line bottom}{fg=blue}

\setbeamercolor{block title alerted}{parent={block title}, bg=red}
\setbeamercolor{block body alerted}{fg=red, bg=red!15}
\setbeamercolor{block line alerted top}{fg=}
\setbeamercolor{block line alerted middle}{fg=red}
\setbeamercolor{block line alerted bottom}{fg=red}

\setbeamercolor{block title example}{parent={block title}, bg=lightgreen}
\setbeamercolor{block body example}{fg=normal text.fg, bg=lightgreen!40}
\setbeamercolor{block line example top}{fg=}
\setbeamercolor{block line example middle}{fg=lightgreen}
\setbeamercolor{block line example bottom}{fg=lightgreen}

\if@beamer@colors@set

  \addtobeamertemplate{proof begin}{%
    \setbeamercolor{block title}{fg=white, bg=green}
  }{}

  \addtobeamertemplate{theorem begin}{%
    \setbeamercolor{block title}{fg=white, bg=orange}
  }{}
  
\fi

\setbeamercolor{section in toc}{parent={normal text}}
\setbeamercolor{subsection in toc}{parent={normal text}}

\setbeamercolor{title}{parent={titlelike}, fg=red}
\setbeamercolor{subtitle}{parent={title}}
\setbeamercolor{author}{parent={normal text}}
\setbeamercolor{institute}{parent={normal text}}

\setbeamercolor{title page}{parent={normal text}}
\setbeamercolor{title page graphic line}{fg=red}
\setbeamercolor{title page title line}{fg=red}

\setbeamercolor{section name}{parent={titlelike}}
\setbeamercolor{section name separator}{parent={section name}}
\setbeamercolor{section title}{parent={titlelike}}

\setbeamercolor{subsection name}{parent={titlelike}}
\setbeamercolor{subsection name separator}{parent={section name}}
\setbeamercolor{subsection title}{parent={titlelike}}

% outer colors:

\setbeamercolor{background}{bg=}

\setbeamercolor{footline}{fg=black!75, bg=}
\setbeamercolor{footline line}{parent={footline}}
\setbeamercolor{footline separator}{parent={footline}}

% hyper ref colors:

\hypersetup{colorlinks=true, allcolors=blue}

\mode
<all>
