From 3039994e27a01d54d7a3cfa696318413161f5e15 Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Fri, 17 Jan 2025 16:25:57 +0100 Subject: [PATCH] feat: add back highcontrast theme from metropolis --- src/beamercolorthememoloch-highcontrast.dtx | 50 +++++++++++++++++++++ src/beamerthememoloch.ins | 2 + 2 files changed, 52 insertions(+) create mode 100644 src/beamercolorthememoloch-highcontrast.dtx diff --git a/src/beamercolorthememoloch-highcontrast.dtx b/src/beamercolorthememoloch-highcontrast.dtx new file mode 100644 index 0000000..624921f --- /dev/null +++ b/src/beamercolorthememoloch-highcontrast.dtx @@ -0,0 +1,50 @@ +% \iffalse meta-comment ------------------------------------------------------- +% Copyright 2015 Matthias Vogelgesang and the LaTeX community. A full list of +% contributors can be found at +% +% https://github.com/matze/mtheme/graphs/contributors +% +% and the original template was based on the HSRM theme by Benjamin Weiss. +% +% This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 +% International License (https://creativecommons.org/licenses/by-sa/4.0/). +%% --------------------------------------------------------------------------- +%% Copyright 2025 Johan Larsson and contributors +% ------------------------------------------------------------------------- \fi +% \iffalse +%<*package> +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{beamercolorthememoloch-highcontrast}[2025-01-17 v0.5.0 Moloch color theme] % x-release-please-version +% +% \fi +% \CheckSum{0} +% \StopEventually{} +% \iffalse +%<*package> +% ------------------------------------------------------------------------- \fi +% +\usecolortheme{moloch} + +\definecolor{mAlert}{HTML}{AD003D} +\definecolor{mExample}{HTML}{005580} + +\setbeamercolor{normal text}{% + fg=black, + bg=white +} +\setbeamercolor{alerted text}{% + fg=mAlert, +} +\setbeamercolor{example text}{% + fg=mExample, +} +% +% \begin{macrocode} +\mode +% \end{macrocode} +% +% \iffalse +% +% \fi +% \Finale +\endinput diff --git a/src/beamerthememoloch.ins b/src/beamerthememoloch.ins index 2c25abc..2ce3a79 100644 --- a/src/beamerthememoloch.ins +++ b/src/beamerthememoloch.ins @@ -27,5 +27,7 @@ \generate{\file{beamercolorthememoloch.sty}{\from{beamercolorthememoloch.dtx}{package}}} \generate{\file{beamercolorthememoloch-tomorrow.sty}{% \from{beamercolorthememoloch-tomorrow.dtx}{package}}} +\generate{\file{beamercolorthememoloch-highcontrast.sty}{% + \from{beamercolorthememoloch-highcontrast.dtx}{package}}} \endbatchfile