From 870f2413bd463044611b208b7b5e13975223acf3 Mon Sep 17 00:00:00 2001
From: "J.F.J. Laros" <J.F.J.Laros@lumc.nl>
Date: Fri, 13 Nov 2015 16:04:07 +0100
Subject: [PATCH] Header.

---
 beamerthemelumc.sty | 49 ++++++++++++++++++++++++++++++---------------
 presentation.tex    |  1 +
 2 files changed, 34 insertions(+), 16 deletions(-)

diff --git a/beamerthemelumc.sty b/beamerthemelumc.sty
index e286705..b53d27c 100644
--- a/beamerthemelumc.sty
+++ b/beamerthemelumc.sty
@@ -14,6 +14,10 @@
 \newlength{\LUMCCell}
 \setlength{\LUMCCell}{1.17cm}
 
+% For the header.
+\usepackage{tikz}
+\usetikzlibrary{patterns}
+
 % For the footer.
 \usepackage{tabularx}
 \usepackage{colortbl}
@@ -42,10 +46,15 @@
 
 % Custom colours (use the gimp colour picker and divide by 255).
 \definecolor{LUMCBlue}{rgb}{0, 0.11372, 0.38039}
-\definecolor{LUMCDarkBlue}{rgb}{0, 0.235294, 0.490196}
-\definecolor{LUMCLightBlue}{rgb}{0, 0.486275, 0.760784}
-\definecolor{LUMCGreenBlue}{rgb}{0, 0.623529, 0.741176}
-\definecolor{LUMCGray}{rgb}{0.431373, 0.564706, 0.650980}
+
+% Custom colours.
+% https://www.lumc.nl/over-het-lumc/leveranciers/huisstijl/kleuren/
+\definecolor{LUMCDonkerblauw}{HTML}{003C7D}
+\definecolor{LUMCKobaltblauw}{HTML}{007CC2}
+\definecolor{LUMCAquablauw}{HTML}{009FBD}
+\definecolor{LUMCGrijsblauw}{HTML}{6E90A6}
+\definecolor{LUMCRood}{HTML}{E3004F}
+\definecolor{LUMCBruin}{HTML}{C0965C}
 
 \definecolor{ULBlue}{rgb}{0.06274, 0.07843, 0.38823}
 
@@ -227,16 +236,24 @@
 % Settings for the body.
 %
 
+\pgfdeclarepatternformonly{custom north east lines}{
+  \pgfqpoint{-1pt}{-1pt}}{\pgfqpoint{4pt}{4pt}}{\pgfqpoint{1.4pt}{1.4pt}}{
+  \pgfsetlinewidth{0.4pt}
+  \pgfpathmoveto{\pgfqpoint{0pt}{0pt}}
+  \pgfpathlineto{\pgfqpoint{3.1pt}{3.1pt}}
+  \pgfusepath{stroke}
+}
+
 % The header of the body.
 \setbeamertemplate{headline}{
-  \colorbox{LUMCBlue}{\color{white}
-    \begin{tabularx}{0.98\textwidth}{ll}
-      \includegraphics[scale=0.25]{logos/lumc_logo_small} & 
-      \hspace{0.8cm}    % Space between the logo and the title of the section.
-      {\normalsize {\bf \insertsection}}
-      \raisebox{0.9cm}{\phantom{.}}
-    \end{tabularx}
-  }
+  \begin{tikzpicture}
+    \fill[LUMCDonkerblauw]
+      (0,0) -- (10.03,0) -- +(\LUMCCell,\LUMCCell) -- (0,\LUMCCell) -- (0,0);
+    \fill[pattern=custom north east lines, pattern color=LUMCKobaltblauw]
+      (0,0) -- (10.45,0) -- +(\LUMCCell,\LUMCCell) -- (0,\LUMCCell) -- (0,0);
+    \node [white, right] at (1,0.3)
+      {\color{white} \normalsize \bf \insertsection};
+  \end{tikzpicture}
 }
 
 % Switch to the normal layout.
@@ -284,10 +301,10 @@
     \renewcommand{\arraystretch}{1.65}
     \begin{tabularx}{\textwidth}{p{\LUMCCell}Xp{\LUMCCell}p{\LUMCCell}}
       \centering
-      \cellcolor{LUMCDarkBlue} \insertframenumber/\inserttotalframenumber &
-      \cellcolor{LUMCLightBlue} \myConference &
-      \cellcolor{LUMCGreenBlue} &
-      \cellcolor{LUMCGray} \myDate
+      \cellcolor{LUMCDonkerblauw} \insertframenumber/\inserttotalframenumber &
+      \cellcolor{LUMCKobaltblauw} \myConference &
+      \cellcolor{LUMCAquablauw} &
+      \cellcolor{LUMCGrijsblauw} \myDate
     \end{tabularx}
   }
 }
diff --git a/presentation.tex b/presentation.tex
index d2182ca..4c3c979 100644
--- a/presentation.tex
+++ b/presentation.tex
@@ -54,6 +54,7 @@
   \permfoot{https://git.lumc.nl/j.f.j.laros/presentation/tree/master}
 \end{pframe}
 
+\section{New section title which is rather long}
 \subsection{Code}
 \begin{pframe}
   A \emph{pframe} does not need to be declared fragile.
-- 
GitLab