% Settings for slides.tex
\usepackage{svg}
\usepackage{xpatch}
\usepackage{xcolor}

% Code block style
\usepackage{minted}
\setminted{
baselinestretch=1.1,
fontsize=\footnotesize,
linenos,
xleftmargin=0.8cm
}

\makeatletter
\newcommand{\my@beamer@setsep}{%
\ifnum\@itemdepth=1\relax
     \setlength\itemsep{\my@beamer@itemsepi}% separation for first level
   \else
     \ifnum\@itemdepth=2\relax
       \setlength\itemsep{\my@beamer@itemsepii}% separation for second level
       \setlength\topsep{\my@beamer@itemsepii}% separation for second level
     \else
       \ifnum\@itemdepth=3\relax
         \setlength\itemsep{\my@beamer@itemsepiii}% separation for third level
         \setlength\topsep{\my@beamer@itemsepiii}% separation for second level
   \fi\fi\fi}
\newlength{\my@beamer@itemsepi}\setlength{\my@beamer@itemsepi}{3ex}
\newlength{\my@beamer@itemsepii}\setlength{\my@beamer@itemsepii}{1.5ex}
\newlength{\my@beamer@itemsepiii}\setlength{\my@beamer@itemsepiii}{1.5ex}
\newcommand\setlistsep[3]{%
    \setlength{\my@beamer@itemsepi}{#1}%
    \setlength{\my@beamer@itemsepii}{#2}%
    \setlength{\my@beamer@itemsepiii}{#3}%
}
\xpatchcmd{\itemize}
  {\def\makelabel}
  {\my@beamer@setsep\def\makelabel}
 {}
 {}

\xpatchcmd{\beamer@enum@}
  {\def\makelabel}
  {\my@beamer@setsep\def\makelabel}
 {}
 {}
\makeatother

\makeatletter
\beamer@theme@subsectionfalse%
\makeatother
\setbeamertemplate{itemize items}{\usebeamercolor[bg]{section in head/foot}$\blacktriangleright$}
\setbeamertemplate{enumerate items}{\usebeamercolor[bg]{section in head/foot}\insertenumlabel.}
\setlength\itemsep{20em}

% To disable navigation buttons above footer
% \beamertemplatenavigationsymbolsempty

% To align title to the left in the header (this removes bullet points)
\setbeamertemplate{headline}
 {%
  \begin{beamercolorbox}{section in head/foot}
  \insertsectionnavigationhorizontal{\textwidth}{}{\hfill\hfill\hfill}
  \end{beamercolorbox}%
}
