Commit 1437460b authored by Michael Eischer's avatar Michael Eischer
Browse files

Redefine \neo@colors@light when using white background

Previously the titlepage still got the nWhite background color.
parent 807db692
Pipeline #32381 passed with stage
in 28 seconds
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
% %
% \begin{macro}{colors} % \begin{macro}{colors}
% Provides the option to have a dark background and light foreground instead % Provides the option to have a dark background and light foreground instead
% of the reverse. % of the reverse. White is similar to light but uses a pure white background.
% \begin{macrocode} % \begin{macrocode}
\pgfkeys{ \pgfkeys{
/neo/color/background/.cd, /neo/color/background/.cd,
.is choice, .is choice,
dark/.code=\neo@colors@dark, dark/.code=\neo@colors@dark,
light/.code=\neo@colors@light, light/.code=\neo@colors@bright,
white/.code=\neo@colors@white, white/.code=\neo@colors@white,
} }
% \end{macrocode} % \end{macrocode}
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
} }
\usebeamercolor[fg]{normal text} \usebeamercolor[fg]{normal text}
} }
\newcommand{\neo@colors@light}{ \newcommand{\neo@colors@bright}{
\setbeamercolor{normal text}{% \setbeamercolor{normal text}{%
fg=nBlack, fg=nBlack,
bg=nWhite bg=nWhite
...@@ -150,7 +150,9 @@ ...@@ -150,7 +150,9 @@
fg=nDarkBlue, fg=nDarkBlue,
bg=nWhite bg=nWhite
} }
\renewcommand{\neo@colors@light}{\neo@colors@bright}
} }
\newcommand{\neo@colors@light}{\neo@colors@bright}
\newcommand{\neo@colors@white}{ \newcommand{\neo@colors@white}{
\setbeamercolor{normal text}{% \setbeamercolor{normal text}{%
fg=nBlack, fg=nBlack,
...@@ -160,6 +162,7 @@ ...@@ -160,6 +162,7 @@
fg=nDarkBlue, fg=nDarkBlue,
bg=white bg=white
} }
\renewcommand{\neo@colors@light}{\neo@colors@white}
} }
\setbeamercolor{alerted text}{% \setbeamercolor{alerted text}{%
fg=nDarkRed fg=nDarkRed
......
No preview for this file type
...@@ -332,9 +332,9 @@ The list of options is structured as shown in the following example. ...@@ -332,9 +332,9 @@ The list of options is structured as shown in the following example.
and |example|. and |example|.
} }
\DescribeOption{background}{dark, light}{light}{ \DescribeOption{background}{dark, light, white}{light}{
Provides the option to have a dark background and light foreground instead Provides the option to have a dark background and light foreground instead
of the reverse. of the reverse. White is similar to light but uses a pure white background.
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment