% Written by Kristan Bredies and Dirk Lorenz, 2005
%            Christian Clason, 2014,2021

\mode<presentation>

\definecolor{hsk 15}{hsb}{.978,1,.89}
\definecolor{kfu}{RGB}{255,213,0}
\definecolor{nawi}{RGB}{6,120,180}
\definecolor{math}{RGB}{144,174,181}
\definecolor{model}{RGB}{204,167,108}
\definecolor{gray1}{gray}{0.85}
\definecolor{gray2}{gray}{0.70}
\definecolor{gray3}{gray}{0.50}
\definecolor{gray4}{gray}{0.20}

\setbeamercolor{normal text}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=hsk 15}

\setbeamercolor{background canvas}{parent=normal text}
\setbeamercolor{background}{parent=background canvas}

\setbeamercolor{palette primary}{bg=kfu, fg=black}
\setbeamercolor{palette secondary}{bg=gray1, fg=black}
\setbeamercolor{palette tertiary}{bg=nawi, fg=black}
\setbeamercolor{palette quaternary}{bg=model, fg=black}
\setbeamercolor{palette sidebar primary}{use=palette primary}
\setbeamercolor{palette sidebar secondary}{use=palette secondary}
\setbeamercolor{palette sidebar tertiary}{use=palette tertiary}
\setbeamercolor{palette sidebar quaternary}{use=palette quaternary}

\setbeamercolor{math text}{}
\setbeamercolor{math text inlined}{parent=math text}
\setbeamercolor{math text displayed}{parent=math text}

\setbeamercolor{normal text in math text}{}

\setbeamercolor{structure}{fg=nawi}
\setbeamercolor{local structure}{parent=structure}

\setbeamercolor{titlelike}{parent=normal text}

\setbeamercolor{title}{parent=titlelike,bg=}
\setbeamercolor{title in head/foot}{parent=palette quaternary}
\setbeamercolor{title in sidebar}{parent=palette sidebar quaternary}

\setbeamercolor{subtitle}{parent=title}

\setbeamercolor{author}{}
\setbeamercolor{author in head/foot}{parent=palette primary}
\setbeamercolor{author in sidebar}{use=palette sidebar tertiary,fg=palette sidebar tertiary.fg}

\setbeamercolor{institute}{fg=gray3}
\setbeamercolor{institute in head/foot}{parent=palette tertiary}
\setbeamercolor{institute in sidebar}{use=palette sidebar tertiary,fg=palette sidebar tertiary.fg}

\setbeamercolor{date}{}
\setbeamercolor{date in head/foot}{parent=palette secondary}
\setbeamercolor{date in sidebar}{use=palette sidebar tertiary,fg=palette sidebar tertiary.fg}

\setbeamercolor{titlegraphic}{}

\setbeamercolor{part name}{}
\setbeamercolor{part title}{parent=titlelike}

\setbeamercolor{section in toc}{parent=structure}
% override beamer template since setting colors independently is not possible otherwise
\setbeamertemplate{section in head/foot}{\color{gray3}\insertsectionhead}
\setbeamertemplate{section in head/foot shaded}{\color{gray1}\insertsectionhead}
\setbeamercolor{section number projected}{parent=item projected}

\setbeamercolor{subsection in toc}{parent=structure}
\setbeamercolor{subsection in head/foot}{parent=palette secondary}
\setbeamercolor{subsection in sidebar}{parent=palette sidebar primary}
\setbeamercolor{subsection in sidebar shaded}{use=subsection in sidebar,fg=subsection in sidebar.fg!40!bg}
\setbeamercolor{subsection number projected}{parent={subitem projected}}

\setbeamercolor{headline}{}
\setbeamercolor{footline}{}

\setbeamercolor{sidebar}{}
\setbeamercolor{sidebar left}{parent=sidebar}
\setbeamercolor{sidebar right}{parent=sidebar}

\setbeamercolor{logo}{parent=palette secondary}

\setbeamercolor{frametitle}{parent=titlelike,bg=}
\setbeamercolor{framesubtitle}{parent=frametitle}

\setbeamercolor{frametitle right}{parent=frametitle}

\setbeamercolor{caption}{}
\setbeamercolor{caption name}{parent=structure}

\setbeamercolor{button}{use=local structure,bg=local structure.fg!50!bg,fg=white}
\setbeamercolor{button border}{use=button,fg=button.bg}
\setbeamercolor{navigation symbols}{use=palette quaternary,fg=palette quaternary.fg}
\setbeamercolor{navigation symbols}{fg=black,bg=white}
\setbeamercolor{navigation symbols dimmed}{use=palette tertiary,fg=palette tertiary.bg!50!fg}
\setbeamercolor{mini frame}{parent=section in head/foot}

\setbeamercolor{block body}{parent=palette secondary}
\setbeamercolor{block body alerted}{parent=block body}
\setbeamercolor{block body example}{parent=block body}
\setbeamercolor{block title}{parent=palette secondary, fg=}
\setbeamercolor{block title alerted}{use=block title,fg=alerted text.fg,bg=block title.bg}
\setbeamercolor{block title example}{use=block title,fg=example text.fg,bg=block title.bg}

\setbeamercolor{item}{use=palette primary, bg=palette primary.bg, fg=palette primary.bg}
\setbeamercolor{subitem}{parent=item}
\setbeamercolor{subsubitem}{parent=subitem}

\setbeamercolor{item projected}{fg=black, use=palette primary, bg=palette primary.bg}
\setbeamercolor{subitem projected}{parent=item projected}
\setbeamercolor{subsubitem projected}{parent=subitem projected}

\setbeamercolor{enumerate item}{parent=item}
\setbeamercolor{enumerate subitem}{parent=subitem}
\setbeamercolor{enumerate subsubitem}{parent=subsubitem}

\setbeamercolor{itemize item}{parent=item}
\setbeamercolor{itemize subitem}{parent=subitem}
\setbeamercolor{itemize subsubitem}{parent=subsubitem}

\setbeamercolor{itemize/enumerate body}{}
\setbeamercolor{itemize/enumerate subbody}{}
\setbeamercolor{itemize/enumerate subsubbody}{}

\setbeamercolor{description item}{parent=item}

\setbeamercolor{bibliography item}{parent=item}

\setbeamercolor{bibliography entry author}{use=structure,fg=structure.fg}
\setbeamercolor{bibliography entry title}{use=normal text,fg=normal text.fg}
\setbeamercolor{bibliography entry location}{use=structure,fg=structure.fg!65!bg}
\setbeamercolor{bibliography entry note}{use=structure,fg=structure.fg!65!bg}

\setbeamercolor{separation line}{}

\setbeamercolor{upper separation line head}{parent=separation line}
\setbeamercolor{middle separation line head}{parent=separation line}
\setbeamercolor{lower separation line head}{parent=separation line}

\setbeamercolor{upper separation line foot}{parent=separation line}
\setbeamercolor{middle separation line foot}{parent=separation line}
\setbeamercolor{lower separation line foot}{parent=separation line}

\setbeamercolor{abstract}{}
\setbeamercolor{abstract title}{parent=structure}

\setbeamercolor{verse}{}

\setbeamercolor{quotation}{}
\setbeamercolor{quote}{parent=quotation}

\setbeamercolor{page number in head/foot}{fg=gray3}

\setbeamercolor{qed symbol}{parent=structure}

\mode<all>
