2014-09-22 17:10:05 +02:00
|
|
|
% Beamer mtheme
|
|
|
|
%
|
|
|
|
% Copyright 2014 Matthias Vogelgesang
|
|
|
|
% Licensed under CC-BY-SA 4.0 International.
|
|
|
|
%
|
|
|
|
|
|
|
|
\ProvidesPackage{beamercolorthememetropolis}
|
|
|
|
|
2015-01-29 02:24:32 +01:00
|
|
|
|
2015-06-10 09:42:12 +02:00
|
|
|
% Options
|
|
|
|
% =======
|
|
|
|
|
|
|
|
% Option: blockbg
|
|
|
|
% applies a gray background to blocks
|
2015-01-29 02:24:32 +01:00
|
|
|
|
2015-01-29 05:13:06 +01:00
|
|
|
\newif\if@beamer@metropolis@blockbg
|
|
|
|
\@beamer@metropolis@blockbgfalse
|
2015-06-10 09:42:12 +02:00
|
|
|
\DeclareOptionBeamer{blockbg}{
|
|
|
|
\@beamer@metropolis@blockbgtrue
|
|
|
|
}
|
|
|
|
|
|
|
|
% Option: ...
|
2015-01-29 05:13:06 +01:00
|
|
|
|
|
|
|
\DeclareOptionBeamer*{%
|
|
|
|
\PackageWarning{beamercolorthememetropolis}{Unknown option `\CurrentOption'}%
|
|
|
|
}
|
|
|
|
|
|
|
|
\ProcessOptionsBeamer
|
|
|
|
|
2015-01-29 02:24:32 +01:00
|
|
|
|
2015-06-10 09:42:12 +02:00
|
|
|
|
|
|
|
% Color definitions
|
|
|
|
% =================
|
|
|
|
%
|
|
|
|
% See http://paletton.com/#uid=7050t0kkJkJsntwoyp6gYgoddc4
|
|
|
|
%
|
2014-09-22 17:10:05 +02:00
|
|
|
|
|
|
|
\definecolor{mDarkBrown}{HTML}{604c38}
|
|
|
|
\definecolor{mDarkTeal}{HTML}{23373b}
|
|
|
|
\definecolor{mLightBrown}{HTML}{EB811B}
|
|
|
|
|
2014-10-28 14:24:15 +01:00
|
|
|
|
|
|
|
|
2015-06-10 09:42:12 +02:00
|
|
|
% Base colors
|
|
|
|
% ===========
|
|
|
|
%
|
|
|
|
% The metropolis color theme is defined in terms of four main styles:
|
|
|
|
%
|
|
|
|
% - normal text (dark fg, light bg)
|
|
|
|
% - alerted text (colored fg, should be visible against dark or light)
|
|
|
|
% - structure (light fg, dark bg)
|
|
|
|
% - block title (dark fg, light-ish bg)
|
|
|
|
%
|
|
|
|
% An easy way to customize the theme is to redefine these colors using
|
|
|
|
%
|
|
|
|
% \setbeamercolor{ ... }{ fg= ... , bg= ... }
|
|
|
|
%
|
|
|
|
% in your preamble.
|
|
|
|
%
|
2014-10-28 14:24:15 +01:00
|
|
|
|
2015-06-10 09:42:12 +02:00
|
|
|
\setbeamercolor{normal text}{%
|
|
|
|
fg=mDarkTeal,
|
|
|
|
bg=black!2
|
|
|
|
}
|
2014-09-22 17:10:05 +02:00
|
|
|
|
2015-06-10 09:42:12 +02:00
|
|
|
\setbeamercolor{alerted text}{%
|
|
|
|
fg=mLightBrown
|
|
|
|
}
|
|
|
|
|
|
|
|
\setbeamercolor{structure}{%
|
|
|
|
fg=white,
|
|
|
|
bg=mDarkTeal
|
|
|
|
}
|
2014-09-22 17:10:05 +02:00
|
|
|
|
2015-01-29 05:13:06 +01:00
|
|
|
\if@beamer@metropolis@blockbg
|
2015-06-10 09:42:12 +02:00
|
|
|
\setbeamercolor{block title}{%
|
|
|
|
use=normal text,
|
|
|
|
fg=normal text.fg,
|
|
|
|
bg=normal text.bg!80!fg
|
|
|
|
}
|
|
|
|
\else
|
|
|
|
\setbeamercolor{block title}{use=normal text, parent=normal text}
|
|
|
|
\fi
|
2015-01-29 02:24:32 +01:00
|
|
|
|
|
|
|
|
2015-01-23 02:41:41 +01:00
|
|
|
|
2015-06-10 09:42:12 +02:00
|
|
|
% Derived colors
|
|
|
|
% ==============
|
|
|
|
%
|
|
|
|
% These colors are all defined in terms of the four above. Beamer colors not
|
|
|
|
% defined here are inherited from `beamercolorthemedefault.sty`
|
|
|
|
%
|
|
|
|
|
|
|
|
\setbeamercolor{frametitle}{use=structure, parent=structure}
|
|
|
|
|
|
|
|
\setbeamercolor{background canvas}{use=normal text, parent=normal text}
|
|
|
|
\setbeamercolor{titlelike}{use=normal text, parent=normal text}
|
|
|
|
|
|
|
|
\setbeamercolor{footnote}{fg=normal text.fg!90}
|
|
|
|
\setbeamercolor{footnote mark}{fg=.}
|
|
|
|
|
|
|
|
\setbeamercolor{block body}{
|
|
|
|
use=block title,
|
|
|
|
bg=block title.bg!50
|
|
|
|
}
|
|
|
|
\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
|
|
|
|
}
|
|
|
|
|
2015-01-23 02:41:41 +01:00
|
|
|
|
2015-01-29 23:18:55 +01:00
|
|
|
\mode<all>
|