summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/beamerthemesidebar.sty
blob: 985d2df5fbe3117888f4863ab14e2212aa7dfbd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
% Copyright 2007 by Till Tantau
% Copyright 2015 by Vedran Mileti\'c, Joseph Wright
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.

\newif\ifbeamer@sidebartab
\newif\ifbeamer@sidebardark

\beamer@sidebartabfalse
\beamer@sidebardarkfalse

\PassOptionsToPackage{width=2.5cm}{beamerouterthemesidebar}

\DeclareOptionBeamer{width}{\PassOptionsToPackage{width=#1}{beamerouterthemesidebar}}
\DeclareOptionBeamer{tab}[true]{\csname beamer@sidebartab#1\endcsname}
\DeclareOptionBeamer{dark}[true]{\csname beamer@sidebardark#1\endcsname}

\ProcessOptionsBeamer

\mode<presentation>

\useoutertheme[right,height=0pt]{sidebar}

\ifbeamer@sidebardark
  \usefonttheme{structurebold}
  \usecolortheme{whale}

  \setbeamercolor{sidebar}{parent=palette primary}

  \usebeamercolor{palette quaternary}
  \usebeamercolor{palette primary}
  \setbeamertemplate{sidebar canvas right}[vertical shading][top=palette quaternary.bg,bottom=palette primary.bg]
\else
  \usecolortheme{seahorse}  

  \usebeamercolor{sidebar}
  \setbeamertemplate{sidebar canvas right}[vertical shading][top=sidebar.bg,bottom=white]
\fi

\ifbeamer@sidebartab
  \usecolortheme{sidebartab}
\fi

\mode
<all>