%%
%% This is file `beamercolorthemethubeamer.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% thubeamer.dtx  (with options: `thucolorstyle')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2019--2021 by Jingxuan Yang <yanglatex2e@gmail.com>
%% 
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in:
%% 
%% http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%% 
%% To produce the documentation run the original source files ending with `.dtx'
%% through LaTeX.
%% 

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthemethubeamer}
[2021/11/15 v1.1.0 A Beamer Theme for Tsinghua University (THU)]
\DeclareOptionBeamer{thupurple}{\def\beamer@thucolor{thupurple}}
\DeclareOptionBeamer{thupurple2}{\def\beamer@thucolor{thupurple2}}
\DeclareOptionBeamer{smoothbars}{\def\beamer@thubar{smoothbars}}
\DeclareOptionBeamer{sidebar}{\def\beamer@thubar{sidebar}}
\ProcessOptionsBeamer

\def\beamer@thucolorpurple{thupurple}
\def\beamer@thusidebar{sidebar}
\mode<presentation>

\ifx\beamer@thucolor\beamer@thucolorpurple
  \definecolor{beamer@textcolor}{RGB}{119,33,151}
  \definecolor{beamer@headercolor}{RGB}{129,48,140} % purple
  \ifx\beamer@thubar\beamer@thusidebar
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \else
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \fi
\else
  \definecolor{beamer@textcolor}{RGB}{119,33,151}
  \definecolor{beamer@headercolor}{RGB}{129,48,140}
  \ifx\beamer@thubar\beamer@thusidebar
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \else
    \definecolor{beamer@sidebarcolor}{RGB}{129,48,140}
  \fi
\fi

\setbeamercolor{title}{fg=white,bg=beamer@headercolor}
\ifx\beamer@thubar\beamer@thusidebar
  \setbeamercolor{frametitle}{fg=beamer@headercolor,bg=beamer@headercolor!10}
\else
  \setbeamercolor{frametitle}{fg=white,bg=beamer@headercolor}
\fi
\setbeamerfont{frametitle}{size=\large}

\setbeamercolor{secondbottomline}{fg=white,bg=beamer@headercolor!50!black}
\setbeamercolor{firstbottomline}{fg=white,bg=beamer@headercolor}

\setbeamercolor{palette primary}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor{palette secondary}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor{palette quaternary}{fg=white,bg=structure.fg!50!black}

\setbeamercolor{block title}{fg=white,bg=beamer@headercolor}
\setbeamercolor{block body}{bg=beamer@headercolor!10}
\setbeamercolor{block title example}{%
  use={normal text,example text},fg=white,bg=example text.fg!75!green
}
\setbeamercolor{fine separation line}{}
\setbeamercolor{item projected}{fg=white}

\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}

\setbeamercolor{section in sidebar}{fg=beamer@textcolor}
\setbeamercolor{section in sidebar shaded}{fg=gray}
\setbeamercolor{separation line}{}
\ifx\beamer@thubar\beamer@thusidebar
  \setbeamercolor{sidebar}{bg=beamer@sidebarcolor!10}
\else
  \setbeamercolor{sidebar}{bg=beamer@sidebarcolor}
\fi
\setbeamercolor{sidebar}{parent=palette primary}
\setbeamercolor{structure}{fg=beamer@headercolor}
\setbeamercolor{subsection in sidebar}{fg=beamer@textcolor}
\setbeamercolor{subsection in sidebar shaded}{fg=gray}
\setbeamercolor{logo}{bg=beamer@headercolor!20}

\mode<all>
%% 
%% This package consists of the file  thubeamer.dtx,
%%              and the derived files thubeamer.pdf,
%%                                    beamerthemethubeamer.sty,
%%                                    beamercolorthemethubeamer.sty,
%%                                    beamerinnerthemethubeamer.sty,
%%                                    beamerouterthemethubeamer.sty.
%% 
%%
%% End of file `beamercolorthemethubeamer.sty'.
