Merge pull request #72 from benjamin-weiss/invert
added invertcolors option
This commit is contained in:
commit
7d3befa2e5
|
@ -66,6 +66,7 @@ the slides, i.e.
|
||||||
in following format: #current/#total. By default, just current page number is
|
in following format: #current/#total. By default, just current page number is
|
||||||
printed.
|
printed.
|
||||||
* Option `noslidenumbers` omits slide numbers entirely.
|
* Option `noslidenumbers` omits slide numbers entirely.
|
||||||
|
* Option `darkcolors` makes the background dark and the foreground light.
|
||||||
|
|
||||||
#### Color customization
|
#### Color customization
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,16 @@
|
||||||
}
|
}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
|
% darkcolors
|
||||||
|
%
|
||||||
|
% \begin{macrocode}
|
||||||
|
\newif\if@beamer@metropolis@darkcolors
|
||||||
|
\@beamer@metropolis@darkcolorsfalse
|
||||||
|
\DeclareOptionBeamer{darkcolors}{
|
||||||
|
\@beamer@metropolis@darkcolorstrue
|
||||||
|
}
|
||||||
|
% \end{macrocode}
|
||||||
|
%
|
||||||
% Unknown option error handling
|
% Unknown option error handling
|
||||||
%
|
%
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
|
@ -104,10 +114,17 @@
|
||||||
% Base Colors
|
% Base Colors
|
||||||
%
|
%
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
\setbeamercolor{normal text}{%
|
\if@beamer@metropolis@darkcolors
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,6 +141,14 @@
|
||||||
}
|
}
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
|
% darkcolors
|
||||||
|
%
|
||||||
|
% \begin{macrocode}
|
||||||
|
\DeclareOptionBeamer{darkcolors}{
|
||||||
|
\PassOptionsToPackage{darkcolors}{beamercolorthememetropolis}%
|
||||||
|
}
|
||||||
|
% \end{macrocode}
|
||||||
|
%
|
||||||
% Unknown option error handling
|
% Unknown option error handling
|
||||||
%
|
%
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
|
|
Loading…
Reference in New Issue