prune content of old commented out stuff
[obnox/slides/2015-05-sambaXP-multi-channel.git] / beamerthemeObnoxSamba.sty
1 % Copyright 2011 by Michael Adam  <obnox@samba.org>
2 % Copyright 2004 by Madhusudan Singh <madhusudan.singh@gmail.com>
3 %
4 % This file may be distributed and/or modified
5 %
6 % 1. under the LaTeX Project Public License and/or
7 % 2. under the GNU Public License.
8 %
9 % See the file doc/licenses/LICENSE for more details.
10
11
12 \mode<presentation>
13
14 \useoutertheme{obnoxinfolines}
15 \usecolortheme{obnoxsamba}
16
17 \setbeamertemplate{navigation symbols}{}
18
19 %%\useinnertheme[shadow=true]{rounded}
20 \useinnertheme{rectangles}
21 % centered squares:
22 %\setbeamertemplate{itemize item}{\rule[0.7ex]{0.7ex}{0.7ex}}
23 \setbeamertemplate{itemize item}{\rule[0.5ex]{0.5ex}{0.5ex}}
24 %\setbeamertemplate{itemize subitem}{\small\rule[0.6ex]{0.6ex}{0.6ex}}
25 \setbeamertemplate{itemize subitem}{\small\rule[0.5ex]{0.5ex}{0.5ex}}
26 \setbeamertemplate{itemize subsubitem}{\small\rule[0.5ex]{0.5ex}{0.5ex}}
27
28
29 \setbeamerfont{block title}{size={}}
30 %\setbeamercolor{titlelike}{parent=structure,bg=white}
31 \setbeamercolor{titlelike}{parent=structure}
32
33
34
35 % blocks
36 \setbeamercolor{block title}{fg=white,bg=rhred4!90}
37 \setbeamercolor{block title alerted}{use=alerted text,use=block title,fg=alerted text.fg!30!block title.fg,bg=block title.bg}
38 \setbeamercolor{block title example}{use=example text,use=block title,fg=example text.fg!30!block title.fg,bg=block title.bg}
39
40 \setbeamercolor{block body}{parent=normal text,bg=rhgrey2!50}
41 \setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,use=block body,fg=alerted text.fg!50!fg,bg=block body.bg}
42 \setbeamercolor{block body example}{parent=normal text,use=block title example,use=block body,fg=example text.fg!40!fg,bg=block body.bg}
43
44 \setbeamertemplate{blocks}[rounded]
45 % blocks
46
47 \newenvironment{sambabg}{
48         \setbeamertemplate{background canvas}%
49                 {\includegraphics[width=\paperwidth,height=\paperheight]{samba_bg.png}}
50 }
51 {
52 }
53
54 \newcommand{\Sambabg}[1]{
55     \begin{sambabg}%
56     #1%
57     \end{sambabg}%
58 }
59
60 \renewcommand{\sectionpage}{\usebeamertemplate*{section page}}
61
62 \newcommand{\fancySectionOpens}{
63 \AtBeginSection[]%
64 {
65     \Sambabg{\frame{\sectionpage}}
66 }
67 }
68
69 %\fancySectionOpens
70
71
72 %\newcommand{\fancyPartOpens}{
73 %\AtBeginPart%
74 %{
75 %    \Sambabg{\frame{\partpage}}
76 %}
77 %}
78
79 %\fancyPartOpens
80
81 \mode<all>