From e74224f685bff802ac74b7045214fbd99c363e83 Mon Sep 17 00:00:00 2001
From: Jannik Dunkelau <jannik.dunkelau@hhu.de>
Date: Thu, 7 Jul 2022 14:49:30 +0200
Subject: [PATCH] Support block environments

---
 beamercolorthemehhubeamer.sty | 12 +++++++-
 beamerthemehhubeamer.sty      |  2 +-
 presentation.tex              | 56 +++++++++++++++++++++++++++++++++--
 3 files changed, 65 insertions(+), 5 deletions(-)

diff --git a/beamercolorthemehhubeamer.sty b/beamercolorthemehhubeamer.sty
index 76aa427..612f7e5 100644
--- a/beamercolorthemehhubeamer.sty
+++ b/beamercolorthemehhubeamer.sty
@@ -41,7 +41,17 @@
 \setbeamercolor{caption name}{fg = hhublue}
 
 \setbeamercolor{structure}{fg=hhublue}
-\setbeamercolor{alerted text}{fg=red}
+\setbeamercolor{alerted text}{fg=hhured}
+
+% Block colours
+\setbeamercolor{block title}{fg=white,bg=hhublue}
+\setbeamercolor{block body}{bg=hhublue!20}
+
+\setbeamercolor{block title alerted}{fg=white,bg=hhured}
+\setbeamercolor{block body alerted}{bg=hhured!20}
+
+\setbeamercolor{block title example}{fg=white,bg=hhugreen}
+\setbeamercolor{block body example}{bg=hhugreen!20}
 
 \mode
 <all>
diff --git a/beamerthemehhubeamer.sty b/beamerthemehhubeamer.sty
index 1b9d317..d63ca46 100644
--- a/beamerthemehhubeamer.sty
+++ b/beamerthemehhubeamer.sty
@@ -27,6 +27,6 @@
 \usecolortheme{hhubeamer}
 
 \setbeamertemplate{navigation symbols}{}
-\setbeamertemplate{blocks}[rounded][shadow=true]
+\setbeamertemplate{blocks}[rounded]
 
 \mode<all>
diff --git a/presentation.tex b/presentation.tex
index 05098e2..e0e1c5f 100644
--- a/presentation.tex
+++ b/presentation.tex
@@ -73,6 +73,7 @@
   \end{description}
 \end{frame}
 
+\section{Beamer Examples}
 \begin{frame}
   \frametitle{Reiner Text}
 
@@ -104,11 +105,9 @@
       Aliqua sint consequat cupidatat ex. Excepteur velit veniam non amet.
     \end{column}
   \end{columns}
-
 \end{frame}
 
 
-\section{Lorem Ipsum}
 \begin{frame}
   \frametitle{Beamer-Befehle}
 
@@ -118,8 +117,59 @@
   \end{itemize}
 \end{frame}
 
+\begin{frame}
+  \frametitle{Blocks}
+
+  \begin{block}{Block}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{block}
+
+  \begin{alertblock}{Alert Block}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{alertblock}
+
+  \begin{exampleblock}{Example Block}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{exampleblock}
+
+  \begin{example}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{example}
+
+\end{frame}
+
+\begin{frame}
+  \frametitle{More Blocks}
+
+  \begin{definition}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{definition}
+
+  \begin{theorem}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{theorem}
+
+  \begin{proof}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{proof}
+
+\end{frame}
+
+\begin{frame}
+  \frametitle{More more Blocks}
+
+  \begin{lemma}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{lemma}
+
+  \begin{corollary}
+    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+  \end{corollary}
+
+\end{frame}
+
+
 
-\subsection{Lipsum}
 \begin{frame}
   \frametitle{Current Section}
 
-- 
GitLab