Pass option 'blockbg' through to colortheme package.
Also, use beamer-specific DeclareOption and error if incorrect options are passed.
This commit is contained in:
parent
92a068fe32
commit
e0a8600ba2
|
@ -9,12 +9,22 @@
|
||||||
|
|
||||||
\ProvidesPackage{beamercolorthememetropolis}
|
\ProvidesPackage{beamercolorthememetropolis}
|
||||||
|
|
||||||
\newif\if@blockbg
|
|
||||||
\@blockbgfalse
|
|
||||||
\DeclareOption{blockbg}{\@blockbgtrue}
|
|
||||||
|
|
||||||
\ProcessOptions\relax
|
%}}}
|
||||||
|
%{{{ --- Options ----------------------
|
||||||
|
|
||||||
|
\newif\if@beamer@metropolis@blockbg
|
||||||
|
\@beamer@metropolis@blockbgfalse
|
||||||
|
\DeclareOptionBeamer{blockbg}{\@beamer@metropolis@blockbgtrue}
|
||||||
|
|
||||||
|
\DeclareOptionBeamer*{%
|
||||||
|
\PackageWarning{beamercolorthememetropolis}{Unknown option `\CurrentOption'}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
%}}}
|
||||||
|
%{{{ --- Colors ---------------------
|
||||||
|
|
||||||
% http://paletton.com/#uid=7050t0kkJkJsntwoyp6gYgoddc4
|
% http://paletton.com/#uid=7050t0kkJkJsntwoyp6gYgoddc4
|
||||||
|
|
||||||
|
@ -47,7 +57,7 @@
|
||||||
\setbeamercolor{footnote mark}{fg=.}
|
\setbeamercolor{footnote mark}{fg=.}
|
||||||
\setbeamercolor{page number in head/foot}{fg=mDarkTeal}
|
\setbeamercolor{page number in head/foot}{fg=mDarkTeal}
|
||||||
|
|
||||||
\if@blockbg
|
\if@beamer@metropolis@blockbg
|
||||||
|
|
||||||
\setbeamercolor{block title}{parent=palette primary,bg=palette primary.bg!80!fg}
|
\setbeamercolor{block title}{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 alerted}{use=alerted text,parent=palette primary,fg=alerted text.fg}
|
||||||
|
|
|
@ -9,6 +9,26 @@
|
||||||
|
|
||||||
\ProvidesPackage{beamerthemem}
|
\ProvidesPackage{beamerthemem}
|
||||||
|
|
||||||
|
%{{{ --- Options ----------------------
|
||||||
|
|
||||||
|
\newif\if@useTitleProgressBar
|
||||||
|
\@useTitleProgressBarfalse
|
||||||
|
\DeclareOptionBeamer{useTitleProgressBar}{\@useTitleProgressBartrue}
|
||||||
|
|
||||||
|
\newif\if@protectFrameTitle
|
||||||
|
\@protectFrameTitlefalse
|
||||||
|
\DeclareOptionBeamer{protectframetitle}{\@protectFrameTitletrue}
|
||||||
|
|
||||||
|
\DeclareOptionBeamer{blockbg}{\PassOptionsToPackage{blockbg}{beamercolorthememetropolis}}
|
||||||
|
|
||||||
|
\DeclareOptionBeamer*{%
|
||||||
|
\PackageWarning{beamerthemem}{Unknown option `\CurrentOption'}%
|
||||||
|
}
|
||||||
|
|
||||||
|
\ProcessOptionsBeamer
|
||||||
|
|
||||||
|
|
||||||
|
%}}}
|
||||||
%{{{ --- Packages ---------------------
|
%{{{ --- Packages ---------------------
|
||||||
|
|
||||||
\usepackage[no-math]{fontspec}
|
\usepackage[no-math]{fontspec}
|
||||||
|
@ -22,18 +42,6 @@
|
||||||
\usecolortheme{metropolis}
|
\usecolortheme{metropolis}
|
||||||
\usefonttheme{metropolis}
|
\usefonttheme{metropolis}
|
||||||
|
|
||||||
%}}}
|
|
||||||
%{{{ --- Options ----------------------
|
|
||||||
|
|
||||||
\newif\if@useTitleProgressBar
|
|
||||||
\@useTitleProgressBarfalse
|
|
||||||
\DeclareOption{titleprogressbar}{\@useTitleProgressBartrue}
|
|
||||||
|
|
||||||
\newif\if@protectFrameTitle
|
|
||||||
\@protectFrameTitlefalse
|
|
||||||
\DeclareOption{protectframetitle}{\@protectFrameTitletrue}
|
|
||||||
|
|
||||||
\ProcessOptions\relax
|
|
||||||
|
|
||||||
%}}}
|
%}}}
|
||||||
%{{{ --- Titlepage --------------------
|
%{{{ --- Titlepage --------------------
|
||||||
|
|
Loading…
Reference in New Issue