summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/fibeamer/theme/mu/fi.dtx
blob: 035c6405d581ebdc93e5c28510c01561649c9b39 (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
% \file{theme/mu/beamercolorthemefibeamer-fi.sty}
% This is the color theme for presentations written at the
% Faculty of Informatics at the Masaryk University in Brno.
% This theme has no effect outside the presentation mode.
%    \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fibeamer/theme/mu/%
  beamercolorthemefibeamer-mu-fi}[2015/08/26]
\mode<presentation>
%    \end{macrocode}
% This color theme uses the combination of yellow and dark gray in light frames
% and the combination of gold and white in dark frames.  The
% |fibeamer@back|\-|groundInner| and |fibeamer@backgroundOuter| colors are used
% within the background canvas template, which is defined within the color
% theme of the Masaryk University and which draws the gradient background of
% dark frames.
%    \begin{macrocode}
  \definecolor{fibeamer@gold}{HTML}{a47312}
  \definecolor{fibeamer@yellow}{HTML}{FFEB9C}
  \definecolor{fibeamer@yellowDark}{HTML}{E9BC09}
  \definecolor{fibeamer@gray}{HTML}{999999}
  \colorlet{fibeamer@backgroundInner}{fibeamer@gold}
  \colorlet{fibeamer@backgroundOuter}{fibeamer@gold!60!black}
%    \end{macrocode}
% The |darkframes| environment switches the |\iffibeamer@darktrue|
% conditional on and sets a dark color theme.
%    \begin{macrocode}
  \renewenvironment{darkframes}{%
    \begingroup
      \fibeamer@darktrue
      %% Structures
      \setbeamercolor*{structure}{fg=white, bg=fibeamer@gold}
      \setbeamercolor*{frametitle}{fg=fibeamer@gold!25!white}
      \setbeamercolor*{framesubtitle}{fg=white}
      %% Text
      \setbeamercolor*{normal text}{fg=white, bg=white}
      %% Items
      \setbeamercolor*{item}{fg=fibeamer@gold!25!white}
      \setbeamercolor{footnote mark}{fg=fibeamer@gold!25!white}
      %% Blocks
      \setbeamercolor*{block title}{
        use=structure, fg=white, bg=fibeamer@gold!60!white}
      \setbeamercolor*{block title example}{
        use=example text, fg=white, bg=fibeamer@gold!60!white}
      \setbeamercolor*{block title alerted}{
        use=alerted text, fg=white, bg=fibeamer@gold!90!white}
      \setbeamercolor*{block body}{
        fg=fibeamer@gold, use=block title,
        bg=fibeamer@gray!15!white}
      \usebeamercolor*{normal text}
      % Code listings
      \lstset{
        commentstyle=\color{green!25!white},
        keywordstyle=\color{blue!25!white},
        stringstyle=\color{fibeamer@gold!30!white}}
      }{%
    \endgroup}
%    \end{macrocode}
% Outside the |darkframes| environment, the light theme is used.
%    \begin{macrocode}
  %% Structures
  \setbeamercolor{structure}{fg=black!75!white, bg=white}
  \setbeamercolor{frametitle}{fg=fibeamer@yellowDark}
  \setbeamercolor{framesubtitle}{fg=black!60!white}
  %% Text
  \setbeamercolor{normal text}{fg=black!75!white}
  %% Items
  \setbeamercolor{item}{fg=fibeamer@yellowDark}
  \setbeamercolor{footnote mark}{fg=fibeamer@yellowDark}
  %% Blocks
  \setbeamercolor{block title}{
    use=structure, fg=black!75!white, bg=fibeamer@yellow}
  \setbeamercolor{block title example}{
    use=example text, fg=black!75!white, bg=fibeamer@yellow}
  \setbeamercolor{block title alerted}{
    use=alerted text, fg=white, bg=black!75!white}
  \setbeamercolor{block body}{
    fg=fibeamer@yellow, use=block title, bg=black!75!white}
  %% Title
  \setbeamercolor{title}{fg=white, bg=fibeamer@gold}
  \setbeamercolor{title}{use=structure}
  % Code listings
  \lstset{
    basicstyle=\footnotesize\ttfamily,
    breakatwhitespace=false,
    breaklines=true,
    commentstyle=\color{green!60!black},
    extendedchars=true,
    keywordstyle=\color{blue},
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    stringstyle=\color{violet}}
\mode
<all>
%    \end{macrocode}