forked from tuna/thulib-latex-talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerinnerthemematerial.sty
60 lines (56 loc) · 2.44 KB
/
beamerinnerthemematerial.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
\setbeamertemplate{background}{
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=BGgrey03] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fill[color=primaryD] (0,\the\paperheight) rectangle(\the\paperwidth,0.9\paperheight);
\ifx\insertframetitle\@empty
\ifnum\thepage>1\relax%
\fill[color=BGgrey03] (0,0) rectangle(\the\paperwidth,\the\paperheight);
\fi
\fi
\end{tikzpicture}
}
% Title page
\defbeamertemplate*{title page}{material}[1][]
{
\makebox[\linewidth][c]{%
\begin{minipage}[t][\paperheight]{\paperwidth}
\raggedright
\begin{tcolorbox}[colback=primary, enhanced, sharpish corners=all, boxrule=0mm, coltext=textPrimary,
fuzzy shadow={0mm}{-0.6mm}{0mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.2mm}{0mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
fuzzy shadow={0mm}{ 0.6mm}{0mm}{0.2mm}{shadow!40!primary}, % topSmall
fuzzy shadow={0mm}{ 0.2mm}{0mm}{0.2mm}{shadow!20!primary}, % topBig
width=\paperwidth, height=0.6\paperheight, flushright upper, valign=bottom, boxsep=0.5cm]
{\usebeamerfont{title} \inserttitle}\\
\ifx\insertsubtitle\@empty\relax\else
{\usebeamerfont{subtitle} \insertsubtitle}\\
\fi
% {\usebeamerfont{author}\insertauthor}\\
% {\usebeamerfont{author}\insertdate}
\end{tcolorbox}
\begin{tcolorbox}[arc=7.5mm,width=15mm,height=15mm, enhanced, %
colback=accent, coltext=textAccent, %
fuzzy shadow={0mm}{ 0.9mm}{ 0.6mm}{0.2mm}{shadow!20!primary}, % top
fuzzy shadow={0mm}{-0.6mm}{-0.1mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.2mm}{-0.2mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
left=.5mm, right=.5mm, top=.5mm, bottom=.5mm, boxsep=0mm, %
boxrule=0mm, enlarge left by=10mm, enlarge top by=-10mm]%
\includegraphics[width=14mm]{\MaterialIcon}
\end{tcolorbox}
\begin{center}
\vspace*{-10mm}
{\usebeamerfont{author}\insertauthor}\\
{\usebeamerfont{author}\insertinstitute}\\
{\usebeamerfont{author}\insertdate}
\end{center}
\end{minipage}%
}%
\vfill
}
% Items
\setbeamertemplate{enumerate items}[circle]
\setbeamertemplate{itemize items}{\Large $\bullet$}
\setbeamertemplate{sections/subsections in toc}[circle]
\mode
<all>