forked from jwettig/metroazwei
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbeamercolorthememetroazwei.sty
146 lines (143 loc) · 3.92 KB
/
beamercolorthememetroazwei.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
%%
%% variation of metropolis theme for the A2 collaboration
%% ---------------------------------------------------------------------------
%% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of
%% contributors can be found at
%%
%% https://github.com/matze/mtheme/graphs/contributors
%%
%% and the original template was based on the HSRM theme by Benjamin Weiss.
%%
%% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0
%% International License (https://creativecommons.org/licenses/by-sa/4.0/).
%% ---------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthememetroazwei}[2017/12/07 metroazwei color theme]
\RequirePackage{pgfopts}
\pgfkeys{
/metroazwei/color/block/.cd,
.is choice,
transparent/.code=\metroazwei@block@transparent,
fill/.code=\metroazwei@block@fill,
}
\pgfkeys{
/metroazwei/color/background/.cd,
.is choice,
dark/.code=\metroazwei@colors@dark,
light/.code=\metroazwei@colors@light,
}
\newcommand{\metroazwei@color@setdefaults}{
\pgfkeys{/metroazwei/color/.cd,
background=light,
block=transparent,
}
}
\definecolor{A2red}{HTML}{c1002a}
\definecolor{DARKteal}{HTML}{37474F}
\definecolor{LIGHTteal}{HTML}{5F92AA}
\definecolor{GREYteal}{HTML}{8198A4}
\definecolor{A2green}{HTML}{91BA2A}
\newcommand{\metroazwei@colors@dark}{
\setbeamercolor{normal text}{%
fg=white,
bg=DARKteal
}
\usebeamercolor[fg]{normal text}
}
\newcommand{\metroazwei@colors@light}{
\setbeamercolor{normal text}{%
fg=DARKteal,
bg=white
}
}
\setbeamercolor{alerted text}{%
fg=A2red
}
\setbeamercolor{example text}{%
fg=LIGHTteal
}
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
\setbeamercolor{author}{use=normal text, parent=normal text}
\setbeamercolor{date}{use=normal text, parent=normal text}
\setbeamercolor{institute}{use=normal text, parent=normal text}
\setbeamercolor{structure}{use=normal text, fg=normal text.fg}
\setbeamercolor{palette primary}{%
fg=white,
bg=DARKteal!70
}
\setbeamercolor{frametitle}{%
fg=white,
bg=A2red
}
\setbeamercolor{progress bar}{%
use=alerted text,
fg=alerted text.fg,
bg=alerted text.fg!20!DARKteal!20
}
\setbeamercolor{title separator}{
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in head/foot}{%
use=progress bar,
parent=progress bar
}
\setbeamercolor{progress bar in section page}{
use=progress bar,
parent=progress bar
}
\newcommand{\metroazwei@block@transparent}{
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg,
bg=
}
\setbeamercolor{block body}{
bg=
}
\setbeamercolor{block title alerted}{%
use={block title, alerted text},
bg=block title.bg,
fg=alerted text.fg
}
\setbeamercolor{block title example}{%
use={block title, example text},
bg=block title.bg,
fg=example text.fg
}
}
\newcommand{\metroazwei@block@fill}{
\setbeamercolor{block title}{%
use=normal text,
fg=normal text.fg,
bg=normal text.fg!20
}
\setbeamercolor{block body}{
use={block title, normal text},
bg=block title.bg!30
}
\setbeamercolor{block title alerted}{%
use={block title, alerted text},
bg=alerted text.fg,
fg=white
}
\setbeamercolor{block title example}{%
use={normal text, example text},
bg=GREYteal,
fg=white
}
}
\setbeamercolor{block body alerted}{use=block body, parent=block body}
\setbeamercolor{block body example}{use=block body, parent=block body}
\setbeamercolor{footnote}{fg=normal text.fg!90}
\setbeamercolor{footnote mark}{fg=.}
\setbeamercolor{bibliography entry author}{fg=, bg=}
\setbeamercolor{bibliography entry title}{fg=, bg=}
\setbeamercolor{bibliography entry location}{fg=, bg=}
\setbeamercolor{bibliography entry note}{fg=, bg=}
\metroazwei@color@setdefaults
\ProcessPgfPackageOptions{/metroazwei/color}
\mode<all>
\endinput
%%
%% End of file `beamercolorthememetroazwei.sty'.