summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tuda-ci/tex/beamercolorthemeTUDa.sty
blob: 0aae6a8079f699a21973415d40a683ab8ee74bf1 (plain)
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
%% This is file `beamercolorthemeTUDa.sty' version 2.10 (2020/04/25),
%% it is part of
%% TUDa-CI -- Corporate Design for TU Darmstadt
%% ----------------------------------------------------------------------------
%%
%%  Copyright (C) 2018--2020 by Marei Peischl <marei@peitex.de>
%%
%% ============================================================================
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainers of this work are
%%   Marei Peischl <tuda-ci@peitex.de>
%%   Markus Lazanowski <latex@ce.tu-darmstadt.de>
%%
%% The development respository can be found at
%% https://github.com/tudace/tuda_latex_templates
%% Please use the issue tracker for feedback!
%%
%% ============================================================================
%%
\def\fileversion{2.10}
\def\filedate{2020/04/25}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{beamercolorthemeTUDa}
[\filedate\space\fileversion]

\RequirePackage{l3keys2e}
\ExplSyntaxOn
\keys_define:nn {TUDa/beamercolor} {
	colortitle .bool_gset:N = \g_TUDa@beamer_colortitle_bool,
	colortitle .default:n = true,
	colortitle .initial:n = true,
	colorbacktitle .meta:n = {colortitle=#1},
	colorframetitle .bool_gset:N = \g_TUDa@beamer_colorframetitle_bool,
	colorframetitle .default:n = true,
	colorframetitle .initial:n = false,
	colorback .meta:n = {colorframetitle=#1}
}

\ProcessKeysOptions{TUDa/beamercolor}

\ExplSyntaxOff
\RequirePackage[RGB]{tudacolors}

\mode<all>

\setbeamercolor*{smallrule}{bg=black}
\setbeamercolor*{identbar}{bg=identbarcolor}

\ExplSyntaxOn
\bool_if:NTF \g_TUDa@beamer_colortitle_bool {
	\setbeamercolor*{title}{fg=textonaccentcolor,bg=accentcolor}
}{
	\setbeamercolor*{title}{fg=black,bg=white}
}

\setbeamercolor*{author}{parent=title}
\setbeamercolor*{institute}{parent=title}

\bool_if:NTF \g_TUDa@beamer_colorframetitle_bool {
	\setbeamercolor*{frametitle}{fg=textonaccentcolor,bg=accentcolor}
} {
	\setbeamercolor*{frametitle}{fg=black,bg=white}
}
\ExplSyntaxOff

\setbeamercolor*{frametitlecover}{bg=white}

\setbeamercolor*{author in head/foot}{fg=black, bg=white}
\setbeamercolor*{date in head/foot}{fg=black, bg=white}

\setbeamercolor*{normal text}{bg=white,fg=black}
\setbeamercolor*{background canvas}{bg=white}

\setbeamercolor*{section in toc}{fg=black,bg=white}


\setbeamercolor*{alerted text}{fg=textaccentcolor}
\setbeamercolor{structure}{fg=textaccentcolor}

\setbeamercolor*{palette primary}{fg=textaccentcolor}
\setbeamercolor*{palette secondary}{fg=textaccentcolor}
\setbeamercolor*{palette tertiary}{fg=textaccentcolor}
\setbeamercolor*{palette quaternary}{fg=black}

\setbeamercolor{bibliography item}{parent=item}
\setbeamercolor{bibliography entry author}{use=structure,fg=structure.fg}
\setbeamercolor{bibliography entry title}{use=normal text,fg=normal text.fg}
\setbeamercolor{bibliography entry location}{use=structure,fg=structure.fg}
\setbeamercolor{bibliography entry note}{use=structure,fg=normal text.fg}

\setbeamercolor{titlelike}{fg=textaccentcolor,bg=white}

\setbeamercolor*{block title}{fg=textonaccentcolor,bg=accentcolor}
\setbeamercolor*{block body}{fg=black,bg=black!15}

\setbeamercolor*{block title alerted}{fg=TUDa-9b,bg=black!15}
\setbeamercolor*{block body alerted}{use=normal text, bg=white}
\setbeamercolor*{block frame alerted}{bg=TUDa-9b}

\setbeamercolor*{block title example}{fg=TUDa-4d,bg=black!15}
\setbeamercolor*{block body example}{use=normal text, bg=white}
\setbeamercolor*{block frame example}{bg=TUDa-4d}


\mode
<all>

\endinput