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:
parent
34759ef915
commit
9adb594f2d
|
@ -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
|
||||
|
|
|
@ -81,6 +81,13 @@
|
|||
\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}%
|
||||
}
|
||||
|
||||
% Option: invertcolors
|
||||
% makes the background dark and the foreground light
|
||||
|
||||
\DeclareOptionBeamer{invertcolors}{
|
||||
\PassOptionsToPackage{invertcolors}{beamercolorthememetropolis}%
|
||||
}
|
||||
|
||||
% Option: ...
|
||||
|
||||
\DeclareOptionBeamer*{
|
||||
|
|
Loading…
Reference in New Issue
Block a user