From 9044d4730375362e777feee892fa03e1e791fd5c Mon Sep 17 00:00:00 2001 From: Johann Dahm Date: Fri, 17 Apr 2015 09:54:00 -0400 Subject: [PATCH 1/2] Add bg color to alerted and example blocks. Addresses #38. Please test. --- beamercolorthememetropolis.sty | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beamercolorthememetropolis.sty b/beamercolorthememetropolis.sty index 6227190..491ec54 100644 --- a/beamercolorthememetropolis.sty +++ b/beamercolorthememetropolis.sty @@ -60,12 +60,12 @@ \if@beamer@metropolis@blockbg \setbeamercolor{block title}{use=palette primary,parent=palette primary,bg=palette primary.bg!80!fg} -\setbeamercolor{block title alerted}{use=alerted text,parent=palette primary,fg=alerted text.fg} -\setbeamercolor{block title example}{use=example text,parent=palette primary,fg=example text.fg} +\setbeamercolor{block title alerted}{use=alerted text,parent=palette primary,fg=alerted text.fg,bg=palette primary.bg!80!fg} +\setbeamercolor{block title example}{use=example text,parent=palette primary,fg=example text.fg,bg=palette primary.bg!80!fg} \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg} -\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg} -\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg} +\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg,bg=palette primary.bg!80!fg} +\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg,bg=palette primary.bg!80!fg} \fi From d615693dfdb7850104900e7cd27ceb9e4dcc70dd Mon Sep 17 00:00:00 2001 From: Johann Dahm Date: Fri, 17 Apr 2015 18:53:20 -0400 Subject: [PATCH 2/2] Fix block background colors and increase contrast. --- beamercolorthememetropolis.sty | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/beamercolorthememetropolis.sty b/beamercolorthememetropolis.sty index 491ec54..4a17e6b 100644 --- a/beamercolorthememetropolis.sty +++ b/beamercolorthememetropolis.sty @@ -60,12 +60,12 @@ \if@beamer@metropolis@blockbg \setbeamercolor{block title}{use=palette primary,parent=palette primary,bg=palette primary.bg!80!fg} -\setbeamercolor{block title alerted}{use=alerted text,parent=palette primary,fg=alerted text.fg,bg=palette primary.bg!80!fg} -\setbeamercolor{block title example}{use=example text,parent=palette primary,fg=example text.fg,bg=palette primary.bg!80!fg} +\setbeamercolor{block title alerted}{use={palette primary,alerted text},parent=palette primary,fg=alerted text.fg,bg=palette primary.bg!80!fg} +\setbeamercolor{block title example}{use={palette primary,example text},parent=palette primary,fg=example text.fg,bg=palette primary.bg!80!fg} -\setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg} -\setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg,bg=palette primary.bg!80!fg} -\setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg,bg=palette primary.bg!80!fg} +\setbeamercolor{block body}{use=block title,parent=normal text,bg=block title.bg!50} +\setbeamercolor{block body alerted}{use={normal text,block body},parent=normal text,bg=block body.bg} +\setbeamercolor{block body example}{use={normal text,block body},parent=normal text,bg=block body.bg} \fi