-
Notifications
You must be signed in to change notification settings - Fork 4
/
beamercolorthemejku.sty
442 lines (382 loc) · 16.4 KB
/
beamercolorthemejku.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% LaTeX Beamer Color Palette for Johannes Kepler University Linz
%%
%% Copyright (C) 2021-2024 Michael Roland
%%
%% This is a rewrite of the JKU theme originally by
%% Susanne Hametner, Doris Pargfrieder, and Pieter-Jan Hoedt.
%%
%% This Source Code Form is subject to the terms of the Mozilla Public
%% License, v. 2.0. If a copy of the MPL was not distributed with this
%% file, You can obtain one at https://mozilla.org/MPL/2.0/.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{beamercolorthemejku}[2023/07/11 v3.0+git JKU Linz Beamer Theme (color theme)]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Dependencies
%%
\RequirePackage{etoolbox}
\RequirePackage{xkeyval}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Options & Parameters
%%
% Option darkmode: use dark color mode by default
\newbool{jkubeamer@darkmode}
\DeclareOptionBeamer{darkmode}[true]{\setbool{jkubeamer@darkmode}{#1}}
% Option mac: use adapted color palette for screen display on Mac
\newbool{jkubeamer@maccolors}
\DeclareOptionBeamer{mac}[true]{\setbool{jkubeamer@maccolors}{#1}}
% DEPRECATED options: these options no longer have any effect
\DeclareOptionBeamer{greyText}{%
\PackageWarning{beamercolorthemejku}{Option `greyText' deprecated, option has no effect!}%
}
\ProcessOptionsBeamer
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% JKU base colors
%%
\ifbool{jkubeamer@maccolors}{%
%TODO: Where do those color values come from? Are they still correct?
%BLUE
\definecolor{jkuBlue}{RGB}{0,120,170}
%CYAN
\definecolor{jkuCyan}{RGB}{100,180,190}
\colorlet{jkuLightBlue}{jkuCyan}
%YELLOW
\definecolor{jkuYellow}{RGB}{230,195,35}
%GREY
\definecolor{jkuGrey}{RGB}{125,130,140}
\colorlet{jkuGray}{jkuGrey}
%DARKGREY
\definecolor{jkuDarkGrey}{RGB}{51,51,51}
\colorlet{jkuDarkGray}{jkuDarkGrey}
%LIGHTGREEN
\definecolor{jkuLightGreen}{RGB}{195,215,75}
%GREEN
\definecolor{jkuGreen}{RGB}{115,180,85}
%PURPLE
\definecolor{jkuPurple}{RGB}{145,75,130}
%RED
\definecolor{jkuRed}{RGB}{205,90,80}
}{%
%BLUE
\definecolor{jkuBlue}{RGB}{4,110,152}
%CYAN
\definecolor{jkuCyan}{RGB}{92,207,203}
\colorlet{jkuLightBlue}{jkuCyan}
%YELLOW
\definecolor{jkuYellow}{RGB}{251,186,0}
%GREY
\definecolor{jkuGrey}{RGB}{128,130,136}
\colorlet{jkuGray}{jkuGrey}
%DARKGREY
\definecolor{jkuDarkGrey}{RGB}{90,90,90}
\colorlet{jkuDarkGray}{jkuDarkGrey}
%LIGHTGREEN
\definecolor{jkuLightGreen}{RGB}{187,208,50}
%GREEN
\definecolor{jkuGreen}{RGB}{76,172,78}
%PURPLE
\definecolor{jkuPurple}{RGB}{156,71,123}
%RED
\definecolor{jkuRed}{RGB}{231,55,41}
}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% JKU base colors commands
%%
\newcommand{\crBlue}{\color{jkuBlue}}
\newcommand{\cBlue}[1]{{\crBlue{#1}}}
\newcommand{\cjkuBlue}[1]{{\crBlue{#1}}}
\newcommand{\crCyan}{\color{jkuCyan}}
\newcommand{\cCyan}[1]{{\crCyan{#1}}}
\newcommand{\cjkuCyan}[1]{{\crCyan{#1}}}
\newcommand{\crLightBlue}{\crCyan}
\newcommand{\cLightBlue}[1]{{\crCyan{#1}}}
\newcommand{\cjkuLightBlue}[1]{{\crCyan{#1}}}
\newcommand{\crYellow}{\color{jkuYellow}}
\newcommand{\cYellow}[1]{{\crYellow{#1}}}
\newcommand{\cjkuYellow}[1]{{\crYellow{#1}}}
\newcommand{\crGrey}{\color{jkuGrey}}
\newcommand{\cGrey}[1]{{\crGrey{#1}}}
\newcommand{\cjkuGrey}[1]{{\crGrey{#1}}}
\newcommand{\crGray}{\crGrey}
\newcommand{\cGray}[1]{{\crGrey{#1}}}
\newcommand{\cjkuGray}[1]{{\crGrey{#1}}}
\newcommand{\crDarkGrey}{\color{jkuDarkGrey}}
\newcommand{\cDarkGrey}[1]{{\crDarkGrey{#1}}}
\newcommand{\cjkuDarkGrey}[1]{{\crDarkGrey{#1}}}
\newcommand{\crDarkGray}{\crDarkGrey}
\newcommand{\cDarkGray}[1]{{\crDarkGrey{#1}}}
\newcommand{\cjkuDarkGray}[1]{{\crDarkGrey{#1}}}
\newcommand{\crLightGreen}{\color{jkuLightGreen}}
\newcommand{\cLightGreen}[1]{{\crLightGreen{#1}}}
\newcommand{\cjkuLightGreen}[1]{{\crLightGreen{#1}}}
\newcommand{\crGreen}{\color{jkuGreen}}
\newcommand{\cGreen}[1]{{\crGreen{#1}}}
\newcommand{\cjkuGreen}[1]{{\crGreen{#1}}}
\newcommand{\crPurple}{\color{jkuPurple}}
\newcommand{\cPurple}[1]{{\crPurple{#1}}}
\newcommand{\cjkuPurple}[1]{{\crPurple{#1}}}
\newcommand{\crRed}{\color{jkuRed}}
\newcommand{\cRed}[1]{{\crRed{#1}}}
\newcommand{\cjkuRed}[1]{{\crRed{#1}}}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Color palettes
%%
\setbeamercolor*{palette primary}{bg=white,fg=black}
\setbeamercolor*{palette jku}{bg=white,fg=jkuGrey}
\setbeamercolor*{palette med}{bg=white,fg=jkuYellow}
\setbeamercolor*{palette re}{bg=white,fg=jkuRed}
\setbeamercolor*{palette sowi}{bg=white,fg=jkuGreen}
\setbeamercolor*{palette tnf}{bg=white,fg=jkuBlue}
\setbeamercolor*{palette lit}{parent=palette tnf}
\setbeamercolor*{palette soe}{bg=white,fg=jkuPurple}
\setbeamercolor*{palette bus}{bg=white,fg=jkuLightGreen}
\setbeamercolor*{palette secondary}{parent=palette jku}
\setbeamercolor*{palette tertiary}{bg=white,fg=jkuGrey}
\setbeamercolor*{palette jku highlight}{bg=jkuDarkGrey,fg=jkuPurple}
\setbeamercolor*{palette med highlight}{bg=jkuDarkGrey,fg=jkuGreen}
\setbeamercolor*{palette re highlight}{bg=jkuDarkGrey,fg=jkuBlue}
\setbeamercolor*{palette sowi highlight}{bg=jkuDarkGrey,fg=jkuPurple}
\setbeamercolor*{palette tnf highlight}{bg=jkuDarkGrey,fg=jkuPurple}
\setbeamercolor*{palette lit highlight}{parent=palette tnf highlight}
\setbeamercolor*{palette soe highlight}{bg=jkuDarkGrey,fg=jkuYellow}
\setbeamercolor*{palette bus highlight}{bg=jkuDarkGrey,fg=jkuPurple}
\setbeamercolor*{palette quaternary}{parent=palette jku highlight}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Normal style
%%
\setbeamercolor*{normal text}{parent=palette primary}
\setbeamercolor*{structure}{fg=}
\setbeamercolor*{alerted text}{fg=jkuRed}
\setbeamercolor*{example text}{fg=jkuGreen}
\setbeamercolor*{emphasized text}{fg=}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Title frames
%%
\setbeamercolor*{title}{parent=normal text}
\setbeamercolor*{series title}{parent=title}
\setbeamercolor*{subtitle}{parent=normal text}
\setbeamercolor*{subsubtitle}{parent=subtitle}
\setbeamercolor*{author}{parent=subtitle}
\setbeamercolor*{institute}{parent=subsubtitle}
\setbeamercolor*{date}{parent=subsubtitle}
\setbeamercolor*{agenda}{parent=subtitle}
\setbeamercolor*{agenda title}{parent=agenda}
\setbeamercolor*{imprint}{parent=normal text}
\setbeamercolor*{imprint name}{parent=imprint}
\setbeamercolor*{imprint address}{parent=imprint}
\setbeamercolor*{imprint url}{parent=imprint}
\setbeamercolor*{section title}{parent=title}
\setbeamercolor*{subsection title}{parent=subtitle}
\setbeamercolor*{subsubsection title}{parent=subsubtitle}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Frame title/footer
%%
\setbeamercolor*{frametitle}{parent=normal text}
\setbeamercolor*{framesubtitle}{parent=frametitle}
\setbeamercolor*{footline}{bg=white,fg=black}
\setbeamercolor*{section in head/foot}{parent=footline}
\setbeamercolor*{page number in head/foot}{parent=section in head/foot}
\setbeamercolor*{date in head/foot}{parent=section in head/foot}
\setbeamercolor*{footnote}{parent=normal text}
\setbeamercolor*{footnote mark}{parent=normal text}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Contact frames
%%
\setbeamercolor*{contacttitle}{parent=title}
\setbeamercolor*{contactsubtitle}{parent=contacttitle}
\setbeamercolor*{contactinfo}{parent=normal text}
\setbeamercolor*{contactinfo icon}{parent=contactinfo}
\setbeamercolor*{acknowledgement}{parent=normal text}
%%
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Itemization and enumeration
%%
\setbeamercolor*{item}{parent=normal text}
\setbeamercolor*{subitem}{parent=item}
\setbeamercolor*{subsubitem}{parent=subitem}
\setbeamercolor*{itemize item}{parent=item}
\setbeamercolor*{itemize subitem}{parent=subitem}
\setbeamercolor*{itemize subsubitem}{parent=subsubitem}
\setbeamercolor*{enumerate item}{parent=item}
\setbeamercolor*{enumerate subitem}{parent=subitem}
\setbeamercolor*{enumerate subsubitem}{parent=subsubitem}
\setbeamercolor*{description item}{parent=item}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Table of contents
%%
\setbeamercolor*{section in toc}{parent=structure}
\setbeamercolor*{subsection in toc}{parent=section in toc}
\setbeamercolor*{subsubsection in toc}{parent=subsection in toc}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Bibliography
%%
\setbeamercolor*{bibliography item}{parent=normal text}
\setbeamercolor*{bibliography entry author}{parent=normal text}
\setbeamercolor*{bibliography entry title}{parent=normal text}
\setbeamercolor*{bibliography entry location}{parent=normal text}
\setbeamercolor*{bibliography entry note}{parent=normal text}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Captions
%%
\setbeamercolor*{caption}{parent=normal text}
\setbeamercolor*{caption name}{parent=caption}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Blocks
%%
\setbeamercolor*{block title}{bg=jkuDarkGrey,fg=white}
\setbeamercolor*{block body}{use=block title,bg=block title.bg!20,fg=black}
\setbeamercolor*{block title example}{bg=jkuGreen,fg=white}
\setbeamercolor*{block body example}{use=block title example,bg=block title example.bg!20,fg=black}
\setbeamercolor*{block title alerted}{bg=jkuPurple,fg=white}
\setbeamercolor*{block body alerted}{use=block title alerted,bg=block title alerted.bg!20,fg=black}
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Color mode switching commands
%%
% color palette switches
\xdef\jkubeamer@currentfaculty{\jkubeamer@faculty}
\define@key{jkubeamer@kv@colorpalette}{jku}[]{%
\setbeamercolor*{palette secondary}{parent=palette jku}%
\setbeamercolor*{palette quaternary}{parent=palette jku highlight}%
\renewcommand{\jkubeamer@currentfaculty}{jku}%
}
\define@key{jkubeamer@kv@colorpalette}{bus}[]{%
\setbeamercolor*{palette secondary}{parent=palette bus}%
\setbeamercolor*{palette quaternary}{parent=palette bus highlight}%
\renewcommand{\jkubeamer@currentfaculty}{bus}%
}
\define@key{jkubeamer@kv@colorpalette}{lit}[]{%
\setbeamercolor*{palette secondary}{parent=palette lit}%
\setbeamercolor*{palette quaternary}{parent=palette lit highlight}%
\renewcommand{\jkubeamer@currentfaculty}{lit}%
}
\define@key{jkubeamer@kv@colorpalette}{med}[]{%
\setbeamercolor*{palette secondary}{parent=palette med}%
\setbeamercolor*{palette quaternary}{parent=palette med highlight}%
\renewcommand{\jkubeamer@currentfaculty}{med}%
}
\define@key{jkubeamer@kv@colorpalette}{re}[]{%
\setbeamercolor*{palette secondary}{parent=palette re}%
\setbeamercolor*{palette quaternary}{parent=palette re highlight}%
\renewcommand{\jkubeamer@currentfaculty}{re}%
}
\define@key{jkubeamer@kv@colorpalette}{soe}[]{%
\setbeamercolor*{palette secondary}{parent=palette soe}%
\setbeamercolor*{palette quaternary}{parent=palette soe highlight}%
\renewcommand{\jkubeamer@currentfaculty}{soe}%
}
\define@key{jkubeamer@kv@colorpalette}{sowi}[]{%
\setbeamercolor*{palette secondary}{parent=palette sowi}%
\setbeamercolor*{palette quaternary}{parent=palette sowi highlight}%
\renewcommand{\jkubeamer@currentfaculty}{sowi}%
}
\define@key{jkubeamer@kv@colorpalette}{tnf}[]{%
\setbeamercolor*{palette secondary}{parent=palette tnf}%
\setbeamercolor*{palette quaternary}{parent=palette tnf highlight}%
\renewcommand{\jkubeamer@currentfaculty}{tnf}%
}
% frame color mode switches
\newcommand{\jkubeamer@currentcolormode}{default}
\define@key{jkubeamer@kv@framecolormode}{light}[]{%
\setbeamercolor*{background canvas}{parent=palette secondary}%
\setbeamercolor*{normal text}{parent=palette primary}%
\renewcommand{\jkubeamer@currentcolormode}{light}%
}
\define@key{jkubeamer@kv@framecolormode}{dark}[]{%
\setbeamercolor*{background canvas}{use=palette secondary,bg=palette secondary.fg,fg=palette secondary.bg}%
\setbeamercolor*{normal text}{use=palette primary,bg=palette primary.fg,fg=palette primary.bg}%
\renewcommand{\jkubeamer@currentcolormode}{dark}%
}
\define@key{jkubeamer@kv@framecolormode}{black}[]{%
\setbeamercolor*{background canvas}{use=palette primary,bg=palette primary.fg,fg=palette primary.bg}%
\setbeamercolor*{normal text}{use=palette primary,bg=palette primary.fg,fg=palette primary.bg}%
\renewcommand{\jkubeamer@currentcolormode}{black}%
}
\define@key{jkubeamer@kv@framecolormode}{grey}[]{%
\setbeamercolor*{background canvas}{use=palette tertiary,bg=palette tertiary.fg,fg=palette tertiary.bg}%
\setbeamercolor*{normal text}{use=palette tertiary,bg=palette tertiary.fg,fg=palette tertiary.bg}%
\renewcommand{\jkubeamer@currentcolormode}{grey}%
}
\define@key{jkubeamer@kv@framecolormode}{gray}[]{\KV@jkubeamer@kv@framecolormode@grey{#1}}
\define@key{jkubeamer@kv@framecolormode}{default}[]{%
\ifbool{jkubeamer@darkmode}{%
\KV@jkubeamer@kv@framecolormode@dark{#1}%
}{%
\KV@jkubeamer@kv@framecolormode@light{#1}%
}%
\renewcommand{\jkubeamer@currentcolormode}{default}%
}
% Command \framecolormode{light | dark | gray | black, FACULTY}: changes the current frame color mode (if color mode is absent, use the current theme color mode)
\newcommand{\framecolormode}[1]{%
% convert param to lowercase
\begingroup\edef\@temp{\lowercase{\endgroup\def\noexpand\@temp@lcparam{#1}}}\@temp%
% preset default color palette
\setkeys{jkubeamer@kv@colorpalette}{\jkubeamer@currentfaculty}%
% update color palette according to params
\begingroup\edef\@temp{\endgroup\noexpand\setkeys*{jkubeamer@kv@colorpalette}{\@temp@lcparam}}\@temp%
% update frame color mode according to params (presetting default frame color mode)
\begingroup\edef\@temp{\endgroup\noexpand\setkeys{jkubeamer@kv@framecolormode}{\jkubeamer@currentcolormode,\XKV@rm}}\@temp%
}
% Command \setcolormode[light | dark | gray | black, FACULTY]: changes the theme color mode (if color mode is absent, reset to the global default color mode)
\newcommand{\setcolormode}[1][]{%
% convert param to lowercase
\begingroup\edef\@temp{\lowercase{\endgroup\def\noexpand\@temp@lcparam{#1}}}\@temp%
% preset default color palette
\setkeys{jkubeamer@kv@colorpalette}{\jkubeamer@faculty}%
% update color palette according to params
\begingroup\edef\@temp{\endgroup\noexpand\setkeys*{jkubeamer@kv@colorpalette}{\@temp@lcparam}}\@temp%
% update frame color mode according to params (presetting default frame color mode)
\begingroup\edef\@temp{\endgroup\noexpand\setkeys{jkubeamer@kv@framecolormode}{default,\XKV@rm}}\@temp%
\setbeamercolor*{background canvas}{parent=palette secondary}%
\setbeamercolor*{normal text}{parent=palette primary}%
}
\setcolormode%
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%