forked from alick/thulib-latex-talk
-
Notifications
You must be signed in to change notification settings - Fork 77
/
beamerouterthemematerial.sty
32 lines (29 loc) · 1.18 KB
/
beamerouterthemematerial.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\mode<presentation>
% Frame title
\defbeamertemplate*{frametitle}{material}[1][]
{
\makebox[\linewidth][c]{%
\begin{minipage}[t]{\paperwidth}
\raggedright
\begin{tcolorbox}[colback=primary, enhanced, sharpish corners=all, boxrule=0mm, coltext=textPrimary,
fuzzy shadow={0mm}{-0.9mm}{0mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.8mm}{0mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
fuzzy shadow={0mm}{ 0.6mm}{0mm}{0.2mm}{shadow!40!primary}, % topSmall
fuzzy shadow={0mm}{ 0.5mm}{0mm}{0.2mm}{shadow!20!primary}, % topBig
width=\paperwidth, boxsep=2mm]
\ifx\insertframesubtitle\@empty%
{\usebeamerfont{frametitle} \insertframetitle}
\else%
{\usebeamerfont{frametitle} \insertframetitle}
{\usebeamerfont{framesubtitle} \insertframesubtitle}
\fi
\end{tcolorbox}
\end{minipage}%
}%
}
\setbeamertemplate{theorem begin}
{%
\normalfont\begin{cardTitle}{\inserttheoremname \inserttheoremnumber \ifx\inserttheoremaddition\@empty\else\ (\inserttheoremaddition)\fi}%
}
\setbeamertemplate{theorem end}{\end{cardTitle}}
\mode<all>