Appendix G — Color Theme: High Contrast

This is a high-contrast variant of the Moloch color theme. It provides better readability for users with visual impairments by using stark color contrasts.

First, we load the base Moloch color theme.

\usecolortheme{moloch}

Next, we define the high-contrast-specific colors.

\definecolor{mAlert}{HTML}{AD003D}
\definecolor{mExample}{HTML}{005580}

G.1 Registering Color Schemes

Register high-contrast-specific light and dark color schemes

\moloch@register@light@colors{%
  \setbeamercolor{normal text}{fg=black,bg=white}%
}
\moloch@register@dark@colors{%
  \setbeamercolor{normal text}{fg=white,bg=black}%
}

G.2 Color Adjustments

Apply high-contrast-specific color adjustments.

\setbeamercolor{normal text}{%
  fg=black,
  bg=white
}
\setbeamercolor{alerted text}{%
  fg=mAlert,
}
\setbeamercolor{example text}{%
  fg=mExample,
}

Make sure the adjustments apply in all modes.

\mode<all>