summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer-contrib/themes/beamertheme-pure-minimalistic/beamercolorthemepureminimalistic.sty
blob: ded9343170ba45d927a3b7a6339fc1a328edccb0 (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
% A pure minimalistic LaTeX-Beamer theme for everyone to use.
% Copyright (C) 2020 Kai Norman Clasen

% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.

% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
% along with this program.  If not, see <https://www.gnu.org/licenses/>.

% This file is part of beamerthemepureminimalistic.

% If problems/bugs are found or enhancements are desired, please contact
% me over: https://github.com/kai-tub/latex-beamer-pure-minimalistic

\ProvidesPackage{beamercolorthemepureminimalistic}[v1.2.4]
\RequirePackage{ifthen}
\mode<presentation>

\newboolean{darkmode}
\setboolean{darkmode}{false}

\DeclareOptionBeamer{darkmode}{\setboolean{darkmode}{true}}
\ProcessOptionsBeamer

\definecolor{pureminimalistic@text@black}{RGB}{0,0,0}
\definecolor{pureminimalistic@text@gray}{RGB}{113,113,113}
\definecolor{pureminimalistic@text@whiter_gray}{RGB}{200,200,200}
\definecolor{pureminimalistic@text@red}{RGB}{190,15,30}
\definecolor{pureminimalistic@text@white}{RGB}{255, 255, 255}

\newcommand{\beamertitlecolor}{pureminimalistic@text@red}

\ifthenelse{\boolean{darkmode}}{
  \newcommand{\beamertextcolor}{pureminimalistic@text@white}%
  \newcommand{\beamerbgcolor}{pureminimalistic@text@black}%
  \newcommand{\beamerfootertextcolor}{pureminimalistic@text@whiter_gray}%
}{%
  \newcommand{\beamertextcolor}{pureminimalistic@text@black}%
  \newcommand{\beamerbgcolor}{pureminimalistic@text@white}%
  \newcommand{\beamerfootertextcolor}{pureminimalistic@text@gray}%
}

\setbeamercolor*{normal text}{fg=\beamertextcolor, bg=\beamerbgcolor}
\setbeamercolor*{alerted text}{fg=\beamertitlecolor, bg=\beamerbgcolor}
\setbeamercolor*{footline}{fg=\beamerfootertextcolor, bg=\beamerbgcolor}
\setbeamercolor*{frametitle}{fg=\beamertitlecolor, bg=\beamerbgcolor}

\setbeamercolor*{author}{parent=normal text}
\setbeamercolor*{title}{parent=frametitle}

\setbeamercolor*{section in toc}{parent=normal text}
\setbeamercolor*{subsection in toc}{parent=normal text}
\setbeamercolor*{subsubsection in toc}{parent=normal text}

\setbeamercolor*{enumerate item}{parent=normal text}
\setbeamercolor*{enumerate subitem}{parent=normal text}
\setbeamercolor*{enumerate subsubitem}{parent=normal text}

\setbeamercolor*{itemize item}{parent=normal text}
\setbeamercolor*{itemize subitem}{parent=normal text}
\setbeamercolor*{itemize subsubitem}{parent=normal text}

\setbeamercolor*{bibliography item}{parent=normal text}
\setbeamercolor*{bibliography entry title}{parent=normal text}
\setbeamercolor*{bibliography entry author}{parent=normal text}
\setbeamercolor*{bibliography entry location}{parent=normal text}
\setbeamercolor*{bibliography entry note}{parent=normal text}

\setbeamercolor*{caption name}{parent=normal text}

\mode<all>