forked from PoisotLab/PLPT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamercolorthemepl.sty
86 lines (65 loc) · 2.6 KB
/
beamercolorthemepl.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
% Beamer mtheme
%
% Copyright 2014 Matthias Vogelgesang
% Licensed under CC-BY-SA 4.0 International.
%
% The initial template comes from the HSRM beamer theme by Benjamin Weiss, which
% you can find at https://github.com/hsrmbeamertheme/hsrmbeamertheme.
%
\ProvidesPackage{beamercolorthemepl}
%}}}
%{{{ --- Options ----------------------
\newif\if@beamer@pl@blockbg
\@beamer@pl@blockbgfalse
\DeclareOptionBeamer{blockbg}{\@beamer@pl@blockbgtrue}
\DeclareOptionBeamer*{%
\PackageWarning{beamercolorthemepl}{Unknown option `\CurrentOption'}%
}
\ProcessOptionsBeamer
%}}}
%{{{ --- Colors ---------------------
\definecolor{plBG}{HTML}{FAFAFA}
\definecolor{plFG}{HTML}{263238}
\definecolor{plST}{HTML}{00796B}
\definecolor{plAC}{HTML}{F57C00}
\definecolor{plTT}{HTML}{03A9F4}
\setbeamercolor{palette primary}{fg=plFG, bg=plBG}
\setbeamercolor{palette secondary}{fg=plFG, bg=plBG}
\setbeamercolor{palette tertiary}{fg=plST, bg=plBG}
\setbeamercolor{palette quaternary}{bg=plFG!15!plBG, fg=plST!50!plBG}
\setbeamercolor{title}{parent=palette tertiary}
\setbeamercolor{subtitle}{parent=palette primary, fg=plAC}
\setbeamercolor{author}{parent=palette secondary}
\setbeamercolor{date}{parent=palette primary}
\setbeamercolor{institute}{parent=palette primary}
\setbeamercolor{structure}{fg=plST}
\setbeamercolor{section title}{parent=palette primary, fg=plAC}
\setbeamercolor{frametitle}{fg=plAC!15!plFG}
\setbeamercolor{background canvas}{parent=palette primary}
\setbeamertemplate{background canvas}{%
\ifnumequal{\c@framenumber}{0}{%
\color{plBG}\rule{\paperwidth}{\paperheight}%
}{%
\ifnumequal{\c@framenumber}{\inserttotalframenumber}{
% Last frame
\color{plBG}\rule{\paperwidth}{\paperheight}
}{%
% Other frames
\color{plBG}\rule{\paperwidth}{\paperheight}
}%
}%
}
\setbeamercolor{normal text}{fg=plFG}
\setbeamercolor{alerted text}{fg=plAC}
\setbeamercolor{footnote}{fg=plST}
\setbeamercolor{footnote mark}{fg=.}
\setbeamercolor{page number in head/foot}{fg=plST}
\if@beamer@pl@blockbg
\setbeamercolor{block title}{parent=palette primary,bg=palette primary.bg!80!fg}
\setbeamercolor{block title alerted}{use=alerted text,parent=palette primary,fg=alerted text.fg}
\setbeamercolor{block title example}{use=example text,parent=palette primary,fg=example text.fg}
\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg}
\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg}
\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg}
\fi
\mode<all>