added invertcolors option
This commit is contained in:
parent
34759ef915
commit
9adb594f2d
|
@ -19,6 +19,18 @@
|
||||||
\@beamer@metropolis@blockbgtrue
|
\@beamer@metropolis@blockbgtrue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Options
|
||||||
|
% =======
|
||||||
|
|
||||||
|
% Option: invertcolors
|
||||||
|
% makes the background dark and the foreground light
|
||||||
|
|
||||||
|
\newif\if@beamer@metropolis@invertcolors
|
||||||
|
\@beamer@metropolis@invertcolorsfalse
|
||||||
|
\DeclareOptionBeamer{invertcolors}{
|
||||||
|
\@beamer@metropolis@invertcolorstrue
|
||||||
|
}
|
||||||
|
|
||||||
% Option: ...
|
% Option: ...
|
||||||
|
|
||||||
\DeclareOptionBeamer*{%
|
\DeclareOptionBeamer*{%
|
||||||
|
@ -57,10 +69,17 @@
|
||||||
% in your preamble.
|
% in your preamble.
|
||||||
%
|
%
|
||||||
|
|
||||||
\setbeamercolor{normal text}{%
|
\if@beamer@metropolis@invertcolors
|
||||||
fg=mDarkTeal,
|
\setbeamercolor{normal text}{%
|
||||||
bg=black!2
|
fg=black!2,
|
||||||
}
|
bg=mDarkTeal
|
||||||
|
}
|
||||||
|
\else
|
||||||
|
\setbeamercolor{normal text}{%
|
||||||
|
fg=mDarkTeal,
|
||||||
|
bg=black!2
|
||||||
|
}
|
||||||
|
\fi
|
||||||
|
|
||||||
\setbeamercolor{alerted text}{%
|
\setbeamercolor{alerted text}{%
|
||||||
fg=mLightBrown
|
fg=mLightBrown
|
||||||
|
|
|
@ -81,6 +81,13 @@
|
||||||
\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}%
|
\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}%
|
||||||
}
|
}
|
||||||
|
|
||||||
|
% Option: invertcolors
|
||||||
|
% makes the background dark and the foreground light
|
||||||
|
|
||||||
|
\DeclareOptionBeamer{invertcolors}{
|
||||||
|
\PassOptionsToPackage{invertcolors}{beamercolorthememetropolis}%
|
||||||
|
}
|
||||||
|
|
||||||
% Option: ...
|
% Option: ...
|
||||||
|
|
||||||
\DeclareOptionBeamer*{
|
\DeclareOptionBeamer*{
|
||||||
|
|
Loading…
Reference in New Issue