From e2663a5d41bed19f22b5b739500764a1ebb7f58b Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 11 Apr 2013 22:43:22 +0200 Subject: [PATCH] Added tokkee.net style header. --- beamercolorthemetokkee.sty | 2 ++ beamerthemetokkee.sty | 13 ++++++++++--- example.tex | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/beamercolorthemetokkee.sty b/beamercolorthemetokkee.sty index 5bcebc0..d6b1674 100644 --- a/beamercolorthemetokkee.sty +++ b/beamercolorthemetokkee.sty @@ -5,12 +5,14 @@ \usecolortheme{default} \definecolor{tokkeeblue}{rgb}{0, .2, .486} +\definecolor{tokkeelightgray}{rgb}{.937, .937, .937} \mode \setbeamercolor{title}{fg=tokkeeblue} \setbeamercolor{frametitle}{fg=tokkeeblue} +\setbeamercolor{framesubtitle}{fg=tokkeeblue} \setbeamercolor{itemize item}{fg=black} \setbeamercolor{itemize subitem}{fg=black} diff --git a/beamerthemetokkee.sty b/beamerthemetokkee.sty index 89044df..df3522d 100644 --- a/beamerthemetokkee.sty +++ b/beamerthemetokkee.sty @@ -8,7 +8,8 @@ \usetikzlibrary{positioning} \usetikzlibrary{shadows} -\setbeamersize{text margin left=7mm,text margin right=7mm} +\setbeamersize{text margin left=7mm, text margin right=7mm,% + text margin top=0mm, text margin bottom=0mm} \titlegraphic{ \begin{tikzpicture}[remember picture,overlay] @@ -25,7 +26,7 @@ \begin{tikzpicture} \usebeamercolor[bg]{title} \draw[thick,draw=gray] (0,0) - node [fill=white,draw,drop shadow,rounded corners,inner sep=10pt,align=center] + node [fill=tokkeelightgray,draw,drop shadow,rounded corners,inner sep=10pt,align=center] { \,\\ \usebeamerfont{title}% @@ -59,9 +60,15 @@ \setbeamerfont{frametitle}{series=\bfseries} \setbeamertemplate{frametitle} { + \begin{tikzpicture}[remember picture,overlay] + \fill[fill=tokkeelightgray,anchor=north west] + (-7mm,-.0\paperheight) rectangle +(\paperwidth,20mm); + \fill[fill=tokkeeblue,anchor=north west] + (-7mm,-.0\paperheight) rectangle +(\paperwidth,-3mm); + \end{tikzpicture} \begin{tikzpicture}[remember picture,overlay] \node[inner sep=0pt,anchor=base west] (tokkee_frametitle) - at (0,.03\paperheight) + at (0,.05\paperheight) {\large\insertframetitle}; \end{tikzpicture} } diff --git a/example.tex b/example.tex index a457b8a..fda75ea 100644 --- a/example.tex +++ b/example.tex @@ -26,7 +26,7 @@ \end{itemize} \end{frame} -\begin{frame}{Noch ein {\ttfamily frame}} +\begin{frame}{Noch ein {\ttfamily frame}}{... mit Subtitel} Mehr Text: Franz jagt im komplett verwahrlosten Taxi quer durch Bayern. Stanleys -- 2.30.2