1
0
mirror of https://github.com/matze/mtheme.git synced 2024-06-25 07:27:45 +02:00

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
}
% 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: ...
\DeclareOptionBeamer*{%
@ -57,10 +69,17 @@
% in your preamble.
%
\setbeamercolor{normal text}{%
fg=mDarkTeal,
bg=black!2
}
\if@beamer@metropolis@invertcolors
\setbeamercolor{normal text}{%
fg=black!2,
bg=mDarkTeal
}
\else
\setbeamercolor{normal text}{%
fg=mDarkTeal,
bg=black!2
}
\fi
\setbeamercolor{alerted text}{%
fg=mLightBrown

View File

@ -81,6 +81,13 @@
\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}%
}
% Option: invertcolors
% makes the background dark and the foreground light
\DeclareOptionBeamer{invertcolors}{
\PassOptionsToPackage{invertcolors}{beamercolorthememetropolis}%
}
% Option: ...
\DeclareOptionBeamer*{