-
Notifications
You must be signed in to change notification settings - Fork 1
/
beamercolorthememin.sty
102 lines (80 loc) · 4.12 KB
/
beamercolorthememin.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
90
91
92
93
94
95
96
97
98
99
100
101
\mode<presentation>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% color definition
\definecolor{mingrey}{HTML}{434A54}
\definecolor{termithgreen}{HTML}{8CC152}
\definecolor{termithorange}{HTML}{E9573F}
\definecolor{linared}{HTML}{DA2209}
\definecolor{linaorange}{HTML}{F6BB42}
\definecolor{linagreen}{HTML}{37BC9B}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% option declaration
\DeclareOptionBeamer{style}{\def\beamer@min@defcolor{#1}}
\ExecuteOptionsBeamer{style=default}
\ProcessOptionsBeamer
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% themes
\def\beamer@min@defaulttext{default}
\ifx\beamer@min@defcolor\beamer@min@defaulttext
\setbeamercolor*{palette primary}{fg=white, bg=black}
\setbeamercolor*{palette reverseprimary}{fg=black, bg=white}
\setbeamercolor*{palette lightprimary}{fg=black, bg=black!10}
\setbeamercolor*{palette secondary}{fg=white, bg=red}
\setbeamercolor*{palette reversesecondary}{fg=red, bg=white}
\setbeamercolor*{palette lightsecondary}{fg=red, bg=red!10}
\setbeamercolor*{palette tertiary}{fg=white, bg=green}
\setbeamercolor*{palette reversetertiary}{fg=green, bg=white}
\setbeamercolor*{palette lighttertiary}{fg=green, bg=green!10}
\setbeamercolor{item projected}{fg=white, bg=black}
\fi
\def\beamer@min@linatext{lina}
\ifx\beamer@min@defcolor\beamer@min@linatext
\setbeamercolor*{palette primary}{fg=white, bg=linared}
\setbeamercolor*{palette reverseprimary}{fg=linared, bg=white}
\setbeamercolor*{palette lightprimary}{fg=mingrey, bg=linared!10}
\setbeamercolor*{palette secondary}{fg=white, bg=linaorange}
\setbeamercolor*{palette reversesecondary}{fg=linaorange, bg=white}
\setbeamercolor*{palette lightsecondary}{fg=mingrey, bg=linaorange!10}
\setbeamercolor*{palette tertiary}{fg=white, bg=linagreen}
\setbeamercolor*{palette reversetertiary}{fg=linagreen, bg=white}
\setbeamercolor*{palette lighttertiary}{fg=mingrey, bg=linagreen!10}
\setbeamercolor{item projected}{fg=white, bg=linared}
\fi
\def\beamer@min@termithtext{termith}
\ifx\beamer@min@defcolor\beamer@min@termithtext
\setbeamercolor*{palette primary}{fg=white, bg=termithgreen}
\setbeamercolor*{palette reverseprimary}{fg=termithgreen, bg=white}
\setbeamercolor*{palette lightprimary}{fg=mingrey, bg=termithgreen!10}
\setbeamercolor*{palette secondary}{fg=white, bg=termithorange}
\setbeamercolor*{palette reversesecondary}{fg=termithorange, bg=white}
\setbeamercolor*{palette lightsecondary}{fg=mingrey, bg=termithorange!10}
\setbeamercolor*{palette tertiary}{fg=white, bg=mingrey}
\setbeamercolor*{palette reversetertiary}{fg=mingrey, bg=white}
\setbeamercolor*{palette lighttertiary}{fg=mingrey, bg=mingrey!10}
\setbeamercolor{item projected}{fg=white, bg=termithgreen}
\fi
\setbeamercolor*{normal text}{fg=mingrey, bg=white}
\setbeamercolor*{title page header}{parent=palette reverseprimary}
\setbeamercolor*{frametitle}{parent=palette primary}
\setbeamercolor*{framenumber}{parent=palette reverseprimary}
\setbeamercolor{section in toc}{parent=palette reverseprimary}
\setbeamercolor{itemize item}{parent=palette reverseprimary}
\setbeamercolor{itemize subitem}{parent=palette reverseprimary}
\setbeamercolor{itemize subsubitem}{parent=palette reverseprimary}
\setbeamercolor{block title}{parent=palette primary}
\setbeamercolor{block body}{parent=palette lightprimary}
\setbeamercolor{block title alerted}{parent=palette secondary}
\setbeamercolor{block body alerted}{parent=palette lightsecondary}
\setbeamercolor{block title example}{parent=palette tertiary}
\setbeamercolor{block body example}{parent=palette lighttertiary}
\AtBeginEnvironment{alertblock}{
\setbeamercolor{itemize item}{parent=palette reversesecondary}
\setbeamercolor{itemize subitem}{parent=palette reversesecondary}
\setbeamercolor{itemize subsubitem}{parent=palette reversesecondary}
}
\AtBeginEnvironment{exampleblock}{
\setbeamercolor{itemize item}{parent=palette reversetertiary}
\setbeamercolor{itemize subitem}{parent=palette reversetertiary}
\setbeamercolor{itemize subsubitem}{parent=palette reversetertiary}
}
\mode<all>