summaryrefslogtreecommitdiff
path: root/obsolete/macros/latex/contrib/beamer-contrib/themes/fibeamer/theme/mu/fi.dtx
blob: ddf36798ac47976a3a9efd3c133f6eba86992d9f (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
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
% \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}[2016/06/16]
\mode<presentation>
%    \end{macrocode}
% This color theme uses the combination of yellow and shades of gray.  The
% |fibeamer@{dark,|\-|light}@background{Inner,|\-|Outer}| colors are used
% within the background canvas template, which is defined within the base
% color theme of the Masaryk University and which draws the gradient
% background of the frames.
% \changes{v1.1.4:1}{2016/05/06}{Completely revamped the color theme of the
%   Faculty of Informatics at the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
  \definecolor{fibeamer@black}{HTML}{2B2E34}
  \definecolor{fibeamer@white}{HTML}{F3EEE1}
  \definecolor{fibeamer@yellow}{HTML}{FFD564}
  \definecolor{fibeamer@orange}{HTML}{FF5500}
  \colorlet{fibeamer@lightGray}{white!80!fibeamer@black}
  \colorlet{fibeamer@gray}{white!35!fibeamer@black}
  \colorlet{fibeamer@darkGray}{white!20!fibeamer@black}
  \definecolor{fibeamer@blue}{HTML}{3333B3}
  \definecolor{fibeamer@lightRed}{HTML}{FF8E6B}
  \colorlet{fibeamer@darkRed}{red!80!fibeamer@white}
%    \end{macrocode}
% \changes{v1.1.4:2}{2016/05/06}{Removed gradient backgrounds from
%   the color themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
  %% Background gradients
  \colorlet{fibeamer@dark@backgroundInner}{fibeamer@black}
  \colorlet{fibeamer@dark@backgroundOuter}{fibeamer@black}
  \colorlet{fibeamer@light@backgroundInner}{fibeamer@white}
  \colorlet{fibeamer@light@backgroundOuter}{fibeamer@white}
%    \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*{frametitle}{fg=fibeamer@yellow}
      \setbeamercolor*{framesubtitle}{fg=fibeamer@lightGray}
      %% Text
      \setbeamercolor*{normal text}{fg=white, bg=fibeamer@black}
      \setbeamercolor*{structure}{fg=white, bg=fibeamer@black}
%    \end{macrocode}
% \changes{v1.1.0:7}{2016/01/12}{Added support for \cs{alert} to
%   the themes of the Masaryk University in Brno. [VN]}
% \changes{v1.1.4:5}{2016/05/06}{Unified the alert colors in the
%   color themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
      \setbeamercolor*{alerted text}{fg=fibeamer@lightRed}
%    \end{macrocode}
% \changes{v1.1.4:3}{2016/05/06}{Added proper link coloring for the
%   color themes of the Masaryk University in Brno. [VN]}
% \changes{v1.1.6}{2017/04/23}{Added proper citation coloring for the
%   color themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
      %% Items, footnotes and links
      \setbeamercolor*{item}{fg=fibeamer@yellow}
      \setbeamercolor*{footnote mark}{fg=fibeamer@yellow}
      \hypersetup{urlcolor=fibeamer@yellow, citecolor=fibeamer@yellow}
      %% Blocks
      \setbeamercolor*{block title}{%
        fg=fibeamer@black, bg=fibeamer@yellow}
      \setbeamercolor*{block title example}{%
        fg=fibeamer@yellow, bg=fibeamer@darkGray}
      \setbeamercolor*{block title alerted}{%
        fg=fibeamer@black, bg=fibeamer@lightRed}
      \setbeamercolor*{block body}{%
        fg=fibeamer@white, 
        bg=fibeamer@darkGray}
      \usebeamercolor*{normal text}
      % Code listings
      \lstset{%
        commentstyle=\color{green!30!white},
        keywordstyle=\color{blue!30!white},
        stringstyle=\color{fibeamer@orange!30!white}}
      }{%
    \endgroup}
%    \end{macrocode}
% Outside the |darkframes| environment, the light theme is used.
% \changes{v1.1.5:2}{2016/06/16}{Updated the light color theme of
%   the Faculty of Informatics at the Masaryk University in Brno.
%   [VN]}
%    \begin{macrocode}
  %% Structures
  \setbeamercolor{frametitle}{fg=fibeamer@blue}
  \setbeamercolor{framesubtitle}{fg=fibeamer@gray}
  %% Text
  \setbeamercolor{normal text}{fg=fibeamer@black, bg=fibeamer@white}
  \setbeamercolor{structure}{fg=fibeamer@black, bg=fibeamer@white}
%    \end{macrocode}
% \changes{v1.1.0:7}{2016/01/12}{Added support for \cs{alert} to
%   the themes of the Masaryk University in Brno. [VN]}
% \changes{v1.1.4:5}{2016/05/06}{Unified the alert colors in the
%   color themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
  \setbeamercolor{alerted text}{fg=red}
  \addtobeamertemplate{block begin}{%
    \iffibeamer@dark\else % alerted text in plain blocks at light slides
      \setbeamercolor{alerted text}{fg=fibeamer@darkRed}
    \fi}{}
%    \end{macrocode}
% \changes{v1.1.4:3}{2016/05/06}{Added proper link coloring for the
%   color themes of the Masaryk University in Brno. [VN]}
% \changes{v1.1.6}{2017/04/23}{Added proper citation coloring for the
%   color themes of the Masaryk University in Brno. [VN]}
%    \begin{macrocode}
  %% Items and links
  \setbeamercolor{item}{fg=fibeamer@blue}
  \setbeamercolor{footnote mark}{fg=fibeamer@blue}
  \hypersetup{urlcolor=fibeamer@blue, citecolor=fibeamer@blue}
  %% Blocks
  \setbeamercolor{block title}{%
    fg=fibeamer@black, bg=fibeamer@yellow}
  \setbeamercolor{block title example}{%
    fg=fibeamer@yellow, bg=fibeamer@black}
  \setbeamercolor{block title alerted}{%
    fg=fibeamer@white, bg=red}
  \setbeamercolor{block body}{%
    fg=fibeamer@white, bg=fibeamer@black}
  %% Title
  \setbeamercolor{title}{fg=fibeamer@yellow, bg=fibeamer@black}
%    \end{macrocode}
% \changes{v1.1.4:4}{2016/05/06}{Added support for subtitle and
%   author name coloring within the color themes of the Masaryk
%   University in Brno. [VN]}
%    \begin{macrocode}
  \setbeamercolor{subtitle}{fg=fibeamer@white, bg=fibeamer@black}
  \setbeamercolor{author}{fg=fibeamer@lightGray, bg=fibeamer@black}
  % Code listings
  \lstset{%
    basicstyle=\footnotesize\ttfamily,
    breakatwhitespace=false,
    breaklines=true,
    commentstyle=\color{green!60!black},
    extendedchars=true,
    keywordstyle=\color{fibeamer@blue},
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    stringstyle=\color{violet}}
\mode
<all>
%    \end{macrocode}