summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamertheme-trigon/beamercolorthemetrigon.sty
blob: e5730d3d9d82037a8e640eded386f23152c96ec8 (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
118
119
%%
%% This is file `beamercolorthemetrigon.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% beamercolorthemetrigon.dtx  (with options: `package')
%% ---------------------------------------------------------------------------
%% Copyright (C) 2021 Thomas Lambert <trigon@thl.ovh>
%% Other contributors to this theme are listed here:
%%     https://gitlab.com/thlamb/beamertheme-trigon/-/graphs/master
%% 
%% The original template was heavily inspired by Metropolis from Matthias
%% Vogelgesang.
%% 
%% License CC-BY-SA 4.0
%% 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{beamercolorthemetrigon}[2021/03/25 v0.5.0 Trigon color theme]
\RequirePackage{pgfopts}
\def\headcol{black}
\pgfkeys{
  /trigon/color/headingcolor/.cd,
    .is choice,
    black/.code=\def\headcol{black},
    theme/.code=\def\headcol{tPrim}
}
\def\txtcol{black}
\pgfkeys{
  /trigon/color/textcolor/.cd,
    .is choice,
    black/.code=\def\txtcol{black},
    theme/.code=\def\txtcol{tPrim!50!black}
}
\pgfkeys{
  /trigon/color/block/.cd,
    .is choice,
    transparent/.code=\trigon@block@transparent,
    fill/.code=\trigon@block@fill
}
\newcommand{\trigon@color@setdefaults}{
  \pgfkeys{/trigon/color/.cd,
   block=fill,
   headingcolor=black,
   textcolor=black
  }
}
\definecolor{tPrim}{HTML}{00707F}   % Green-Blue
\definecolor{tSec}{HTML}{5FA4B0}    % Green-Blue light
\definecolor{tAccent}{HTML}{F07F3C} % Orange
\definecolor{tGrey}{HTML}{E6E6E1}   % Grey-Beige
\setbeamercolor{background canvas}{bg=white}
\setbeamercolor{normal text}{fg=\txtcol, bg= }
\setbeamercolor{alerted text}{fg=tAccent}
\setbeamercolor{example text}{fg=tSec}

\setbeamercolor{title}{fg=\headcol, bg= , parent=normal text}
\setbeamercolor{titlelike}{use=title, parent=title}
\setbeamercolor{author}{use=normal text, bg= , parent=normal text}
\setbeamercolor{date}{use=normal text, bg= , parent=normal text}
\setbeamercolor{institute}{use=normal text, parent=normal text}
\setbeamercolor{structure}{use=normal text, fg=normal text.fg}

\setbeamercolor{palette primary}{use=titlelike, parent=titlelike}
\setbeamercolor{frametitle}{use=titlelike, parent=titlelike}
\newcommand{\trigon@block@transparent}{
  \setbeamercolor{block title}{%
    use=normal text,
    fg=normal text.fg,
    bg=normal text.bg!96!fg
  }
  \setbeamercolor{block body}{
    use={block title, normal text},
    bg=block title.bg!35!normal text.bg
  }
}
\newcommand{\trigon@block@fill}{
  \setbeamercolor{block title}{%
    use=normal text,
    fg=normal text.fg,
    bg=normal text.bg!80!fg
  }
  \setbeamercolor{block body}{
    use={block title, normal text},
    bg=block title.bg!50!normal text.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
}
\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{footline}{fg=normal text.fg!50, parent=normal text}
\setbeamercolor{caption}{fg=black!60, parent=normal text}

\setbeamercolor{itemize item}{fg=tPrim, parent=normal text}
\setbeamercolor{itemize subitem}{use=itemize item, parent=itemize item}
\setbeamercolor{itemize subsubitem}{use=itemize item, parent=itemize item}
\setbeamercolor{enumerate item}{fg=tPrim, parent=normal text}
\setbeamercolor{enumerate subitem}{use=enumerate item, parent=enumerate item}
\setbeamercolor{enumerate subsubitem}{use=enumerate item, parent=enumerate item}
\setbeamercolor{description item}{fg=tPrim, parent=normal text}
\trigon@color@setdefaults
\ProcessPgfPackageOptions{/trigon/color}
\endinput
%%
%% End of file `beamercolorthemetrigon.sty'.