-
Notifications
You must be signed in to change notification settings - Fork 3
/
beamerthemeOxygen.sty
89 lines (76 loc) · 2.49 KB
/
beamerthemeOxygen.sty
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%\usetheme{Rochester} %works
\usetheme{PaloAlto} %works fine
%\usetheme{Marburg} %sucks
%\usepackage{multimedia}
\RequirePackage{pgf}
\pgfdeclareimage[width=1.0\paperwidth]{oxygen-header}{oxygen-header}
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamercovered{transparent}
\beamer@headheight=0.13\paperwidth
%\definecolor{oxygenorange}{HTML}{F7800A}
\definecolor{oxygenorange}{HTML}{236EAF}
\definecolor{oxygengray}{HTML}{686868}
\definecolor{oxygenlightgray}{HTML}{EEEEEE}
\definecolor{oxygenblue}{HTML}{236EAF}
\setbeamercolor*{Title bar}{fg=white}
\setbeamercolor*{Location bar}{fg=oxygenorange,bg=oxygenlightgray}
\setbeamercolor*{frametitle}{parent=Title bar}
\setbeamercolor*{block title}{bg=oxygenblue,fg=white}
\setbeamercolor*{block body}{bg=oxygenlightgray,fg=oxygengray}
\setbeamercolor*{normal text}{bg=white,fg=oxygengray}
\setbeamercolor*{section in head/foot}{bg=oxygenblue,fg=white}
\usecolortheme[named=oxygenorange]{structure}
\setbeamerfont{section in head/foot}{size=\tiny,series=\normalfont}
\setbeamerfont{frametitle}{size=\Large}
%\beamer@sidebarwidth=0pt
%\setbeamersize{sidebar width left=0cm}
\setbeamertemplate{frametitle}
{
\vskip-0.2\beamer@headheight
\vskip-\baselineskip
\vskip-0.2cm
\hskip-0.6cm\usebeamerfont*{frametitle}\insertframetitle
\vskip-0.10em
\hskip-0.6cm\usebeamerfont*{framesubtitle}\insertframesubtitle
}
\setbeamertemplate{headline}
{
\pgfuseimage{oxygen-header}
\vskip -1.95cm
\linethickness{0pt}
\framelatex{
\begin{beamercolorbox}[wd=\paperwidth,ht=0.3\beamer@headheight]{Title bar}
\usebeamerfont{section in head/foot}%
\insertsectionnavigationhorizontal{1pt}{\hskip0.22cm}{}%
\end{beamercolorbox}}
\framelatex{
\begin{beamercolorbox}[wd=\paperwidth,ht=0.7\beamer@headheight]{Title bar}
\end{beamercolorbox}}
}
\setbeamertemplate{footline}
{
\linethickness{0pt}
\framelatex{
\begin{beamercolorbox}[leftskip=.3cm,wd=\paperwidth,ht=0.3\beamer@headheight,sep=0.1cm]{Location bar}
\usebeamerfont{section in head/foot}%
\insertshortauthor~|~\insertshorttitle
\hfill
\insertframenumber/\inserttotalframenumber
\end{beamercolorbox}}
}
\setbeamertemplate{section in sidebar}%{sidebar theme}
{%
\vbox{%
\vskip1ex%
\beamer@sidebarformat{3pt}{section in sidebar}{\insertsectionheadnumber
~\insertsectionhead}%
}%
}
\setbeamertemplate{section in sidebar shaded}%{sidebar theme}
{%
\vbox{%
\vskip1ex%
\beamer@sidebarformat{3pt}{section in sidebar shaded}{\insertsectionheadnumber
~\insertsectionhead}%
}%
}