diff --git a/README.md b/README.md index bab2665..955f1fe 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ the slides, i.e. in following format: #current/#total. By default, just current page number is printed. * Option `noslidenumbers` omits slide numbers entirely. +* Option `darkcolors` makes the background dark and the foreground light. #### Color customization diff --git a/beamercolorthememetropolis.dtx b/beamercolorthememetropolis.dtx index 7e3f8e5..0c98883 100644 --- a/beamercolorthememetropolis.dtx +++ b/beamercolorthememetropolis.dtx @@ -83,6 +83,16 @@ } % \end{macrocode} % +% darkcolors +% +% \begin{macrocode} +\newif\if@beamer@metropolis@darkcolors +\@beamer@metropolis@darkcolorsfalse +\DeclareOptionBeamer{darkcolors}{ + \@beamer@metropolis@darkcolorstrue +} +% \end{macrocode} +% % Unknown option error handling % % \begin{macrocode} @@ -104,10 +114,17 @@ % Base Colors % % \begin{macrocode} -\setbeamercolor{normal text}{% - fg=mDarkTeal, - bg=black!2 -} +\if@beamer@metropolis@darkcolors + \setbeamercolor{normal text}{% + fg=black!2, + bg=mDarkTeal + } +\else + \setbeamercolor{normal text}{% + fg=mDarkTeal, + bg=black!2 + } +\fi \setbeamercolor{alerted text}{% fg=mLightBrown } diff --git a/beamerthemem.dtx b/beamerthemem.dtx index cb616ed..ad5ad0d 100644 --- a/beamerthemem.dtx +++ b/beamerthemem.dtx @@ -141,6 +141,14 @@ } % \end{macrocode} % +% darkcolors +% +% \begin{macrocode} +\DeclareOptionBeamer{darkcolors}{ + \PassOptionsToPackage{darkcolors}{beamercolorthememetropolis}% +} +% \end{macrocode} +% % Unknown option error handling % % \begin{macrocode}