added invertcolors option

This commit is contained in:
Benjamin Weiss 2015-06-11 10:53:20 +02:00
parent 34759ef915
commit 9adb594f2d
2 changed files with 30 additions and 4 deletions

View File

@ -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.
% %
\if@beamer@metropolis@invertcolors
\setbeamercolor{normal text}{%
fg=black!2,
bg=mDarkTeal
}
\else
\setbeamercolor{normal text}{% \setbeamercolor{normal text}{%
fg=mDarkTeal, fg=mDarkTeal,
bg=black!2 bg=black!2
} }
\fi
\setbeamercolor{alerted text}{% \setbeamercolor{alerted text}{%
fg=mLightBrown fg=mLightBrown

View File

@ -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*{