Fix incorrect and missing colours

This commit is contained in:
Ross Churchley 2015-06-10 08:32:27 -07:00
parent ad3d2591fc
commit 96394177cb
2 changed files with 28 additions and 12 deletions

View File

@ -38,7 +38,7 @@
\definecolor{mDarkBrown}{HTML}{604c38} \definecolor{mDarkBrown}{HTML}{604c38}
\definecolor{mDarkTeal}{HTML}{23373b} \definecolor{mDarkTeal}{HTML}{23373b}
\definecolor{mLightBrown}{HTML}{EB811B} \definecolor{mLightBrown}{HTML}{EB811B}
\definecolor{mLightGreen}{HTML}{14B03D}
% Base colors % Base colors
@ -48,7 +48,9 @@
% %
% - normal text (dark fg, light bg) % - normal text (dark fg, light bg)
% - alerted text (colored fg, should be visible against dark or light) % - alerted text (colored fg, should be visible against dark or light)
% - structure (light fg, dark bg) % - example text (colored fg, should be visible against dark or light)
% - structure (dark-ish fg)
% - palette primary (light fg, dark bg)
% - block title (dark fg, light-ish bg) % - block title (dark fg, light-ish bg)
% %
% An easy way to customize the theme is to redefine these colors using % An easy way to customize the theme is to redefine these colors using
@ -67,9 +69,21 @@
fg=mLightBrown fg=mLightBrown
} }
\setbeamercolor{example text}{%
fg=mLightGreen
}
\setbeamercolor{structure}{% \setbeamercolor{structure}{%
fg=white, fg=mDarkTeal!50
bg=mDarkTeal }
\setbeamercolor{palette primary}{%
% The “primary” palette should be used for the most important navigational
% elements, and possibly of other elements.
% The metropolis color theme uses it for frame titles and `\plain` slides.
use=normal text,
fg=normal text.bg,
bg=normal text.fg
} }
\if@beamer@metropolis@blockbg \if@beamer@metropolis@blockbg
@ -91,7 +105,7 @@
% defined here are inherited from `beamercolorthemedefault.sty` % defined here are inherited from `beamercolorthemedefault.sty`
% %
\setbeamercolor{frametitle}{use=structure, parent=structure} \setbeamercolor{frametitle}{use=palette primary, parent=palette primary}
\setbeamercolor{background canvas}{use=normal text, parent=normal text} \setbeamercolor{background canvas}{use=normal text, parent=normal text}
\setbeamercolor{titlelike}{use=normal text, parent=normal text} \setbeamercolor{titlelike}{use=normal text, parent=normal text}
@ -100,9 +114,11 @@
\setbeamercolor{footnote mark}{fg=.} \setbeamercolor{footnote mark}{fg=.}
\setbeamercolor{block body}{ \setbeamercolor{block body}{
use=block title, use={block title, normal text},
bg=block title.bg!50 bg=block title.bg!50!normal text.bg
} }
\setbeamercolor{block body alerted}{use=block body, parent=block body}
\setbeamercolor{block body example}{use=block body, parent=block body}
\setbeamercolor{block title alerted}{% \setbeamercolor{block title alerted}{%
use={block title, alerted text}, use={block title, alerted text},
bg=block title.bg, bg=block title.bg,

View File

@ -236,12 +236,12 @@
\newcommand{\plain}[2][]{% \newcommand{\plain}[2][]{%
\begingroup \begingroup
\setbeamercolor{background canvas}{use=structure,parent=structure} \setbeamercolor{background canvas}{use=palette primary,parent=palette primary}
\begin{frame}{#1} \begin{frame}{#1}
\centering \centering
\vfill \vfill
\vspace{1em} \vspace{1em}
\usebeamercolor[fg]{structure} \usebeamercolor[fg]{palette primary}
\usebeamerfont{section title} \usebeamerfont{section title}
\mthemetitleformat{#2} \mthemetitleformat{#2}
\vfill \vfill