Commit c9685109 authored by Alija Sabic's avatar Alija Sabic
Browse files

Update theme

parent 6a69ba9f
\mode<presentation>
% ------------------------------------------------------------------------------------------------------------------- %
% Frame Title
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{frametitle}{\beamer@fhtw@style}%
% ------------------------------------------------------------------------------------------------------------------- %
% Itemize
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{itemize item}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{itemize subitem}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{itemize subsubitem}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Enumerate
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{enumerate item}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{enumerate subitem}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{enumerate subsubitem}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Description
% ------------------------------------------------------------------------------------------------------------------- %
% \beamer@fhtw@setstyle{description item}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Structure
% ------------------------------------------------------------------------------------------------------------------- %
% \beamer@fhtw@setstyle{structure}{\beamer@fhtw@style}%font and color only
% ------------------------------------------------------------------------------------------------------------------- %
% Alert
% ------------------------------------------------------------------------------------------------------------------- %
% \beamer@fhtw@setstyle{alerted text}{\beamer@fhtw@style}%font and color only
% ------------------------------------------------------------------------------------------------------------------- %
% Block
% ------------------------------------------------------------------------------------------------------------------- %
% \setbeamertemplate{blocks}[default]
\setbeamertemplate{blocks}[rounded][shadow=true]
\beamer@fhtw@setstyle{block begin}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{block end}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Alert Block
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{block alerted begin}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{block alerted end}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Example Block
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{block example begin}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{block example end}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Theorem
% ------------------------------------------------------------------------------------------------------------------- %
% \setbeamertemplate{theorems}[numbered]
% \setbeamertemplate{theorems}[normal font]
% \setbeamertemplate{theorems}[ams style]
\beamer@fhtw@setstyle{theorem begin}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{theorem end}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{qed symbol}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Caption
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{caption}{\beamer@fhtw@style}
\setbeamertemplate{caption label separator}[default]%,none,colon,period,space,quad,endash
% \beamer@fhtw@setstyle{caption label separator}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Custom Block Environment
% ------------------------------------------------------------------------------------------------------------------- %
\newenvironment<>{grayblock}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\mode<presentation>{%
\setbeamercolor{block title}{fg=white,bg=tw-gray}%
\setbeamercolor{block body}{fg=black,bg=tw-gray!20}%
\setbeamertemplate{itemize item}{%
\tikz[overlay]\usebeamerfont{itemize item}\draw[rounded corners=1pt,fill=tw-gray!80!black,draw=none,item shadow] (-0.5em,0.1em) rectangle ++(0.5em,0.5em);%
}%
\setbeamertemplate{itemize subitem}{%
\tikz[overlay]\usebeamerfont{itemize subitem}\draw[fill=tw-gray!80!white,draw=none,item shadow] (-0.2em,0.35em) circle(0.22em);%
}%
}%
\usebeamertemplate{block begin}%
}{%
\par%
\usebeamertemplate{block end}%
\end{actionenv}%
}
\newenvironment<>{violettblock}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\mode<presentation>{%
\setbeamercolor{block title}{fg=white,bg=ttw-violett}%
\setbeamercolor{block body}{fg=black,bg=ttw-violett!20}%
\setbeamertemplate{itemize item}{%
\tikz[overlay]\usebeamerfont{itemize item}\draw[rounded corners=1pt,fill=ttw-violett!80!black,draw=none,item shadow] (-0.5em,0.1em) rectangle ++(0.5em,0.5em);%
}%
\setbeamertemplate{itemize subitem}{%
\tikz[overlay]\usebeamerfont{itemize subitem}\draw[fill=ttw-violett!80!white,draw=none,item shadow] (-0.2em,0.35em) circle(0.22em);%
}%
}%
\usebeamertemplate{block begin}%
}{%
\par%
\usebeamertemplate{block end}%
\end{actionenv}%
}
\renewenvironment<>{exampleblock}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\mode<presentation>{%
\setbeamercolor{block title}{fg=white,bg=tw-green}%
\setbeamercolor{block body}{fg=black,bg=tw-green!20}%
\setbeamertemplate{itemize item}{%
\tikz[overlay]\usebeamerfont{itemize item}\draw[rounded corners=1pt,fill=tw-green!80!black,draw=none,item shadow] (-0.5em,0.1em) rectangle ++(0.5em,0.5em);%
}%
\setbeamertemplate{itemize subitem}{%
\tikz[overlay]\usebeamerfont{itemize subitem}\draw[fill=tw-green!80!white,draw=none,item shadow] (-0.2em,0.35em) circle(0.22em);%
}%
}%
\usebeamertemplate{block begin}%
}{%
\par%
\usebeamertemplate{block end}%
\end{actionenv}%
}
\renewenvironment<>{alertblock}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\mode<presentation>{%
\setbeamercolor{block title}{fg=white,bg=ttw-red}%
\setbeamercolor{block body}{fg=black,bg=ttw-red!20}%
\setbeamertemplate{itemize item}{%
\tikz[overlay]\usebeamerfont{itemize item}\draw[rounded corners=1pt,fill=ttw-red!80!black,draw=none,item shadow] (-0.5em,0.1em) rectangle ++(0.5em,0.5em);%
}%
\setbeamertemplate{itemize subitem}{%
\tikz[overlay]\usebeamerfont{itemize subitem}\draw[fill=tw-red!80!white,draw=none,item shadow] (-0.2em,0.35em) circle(0.22em);%
}%
}%
\usebeamertemplate{block begin}%
}{%
\par%
\usebeamertemplate{block end}%
\end{actionenv}%
}
\renewenvironment<>{block}[1]{%
\begin{actionenv}#2%
\def\insertblocktitle{#1}%
\par%
\mode<presentation>{%
\setbeamercolor{block title}{fg=white,bg=tw-blue}%
\setbeamercolor{block body}{fg=black,bg=tw-blue!20}%
\setbeamertemplate{itemize item}{%
\tikz[overlay]\usebeamerfont{itemize item}\draw[rounded corners=1pt,fill=tw-blue!80!black,draw=none,item shadow] (-0.5em,0.1em) rectangle ++(0.5em,0.5em);%
}%
\setbeamertemplate{itemize subitem}{%
\tikz[overlay]\usebeamerfont{itemize subitem}\draw[fill=tw-blue!80!white,draw=none,item shadow] (-0.2em,0.35em) circle(0.22em);%
}%
}%
\usebeamertemplate{block begin}%
}{%
\par%
\usebeamertemplate{block end}%
\end{actionenv}%
}
\mode<all>
\ No newline at end of file
\mode<presentation>
\ProcessOptionsBeamer\relax
\def\beamer@fhtw@sidebarlogox{\sidebarwidth/2pt}
\def\beamer@fhtw@sidebarlogoy{\paperheight-\pradius cm-4mm}
\def\beamer@fhtw@sidebarlogoor{\sidebarwidth/1cm*0.25}
\def\beamer@fhtw@sidebarlogoir{\sidebarwidth/1cm*0.215}
% ------------------------------------------------------------------------------------------------------------------- %
% Navigation Symbols
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{navigation symbols}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Logo
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{logo}{\beamer@fhtw@style}%
% ------------------------------------------------------------------------------------------------------------------- %
% Background
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{background}{\beamer@fhtw@style}%
% ------------------------------------------------------------------------------------------------------------------- %
% Title Page
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{title page}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Sidebar Canvas
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{sidebar canvas \beamer@fhtw@sidebarside}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Sidebar Sections
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{section in sidebar}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{subsection in sidebar}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{subsubsection in sidebar}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{section in sidebar shaded}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{subsection in sidebar shaded}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{subsubsection in sidebar shaded}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Sidebar
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{sidebar \beamer@fhtw@sidebarside}{\beamer@fhtw@style}
% ------------------------------------------------------------------------------------------------------------------- %
% Table of Contents
% ------------------------------------------------------------------------------------------------------------------- %
\beamer@fhtw@setstyle{section in toc}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{subsection in toc}{\beamer@fhtw@style}
\beamer@fhtw@setstyle{subsubsection in toc}{\beamer@fhtw@style}
\mode<all>
\ No newline at end of file
\mode<presentation>
% ------------------------------------------------------------------------------------------------------------------- %
% Dependencies
% ------------------------------------------------------------------------------------------------------------------- %
\RequirePackage[utf8]{inputenc}%
\RequirePackage[T1]{fontenc}%
% TikZ
\RequirePackage{tikz}%
\usetikzlibrary{calc}%
\usetikzlibrary{shadows}%
% \tikzset{item shadow/.style={drop shadow={shadow xshift=0.75pt,shadow yshift=-0.75pt,fill=\beamer@fhtw@accent!50}}}%
\tikzset{
item shadow/.style={drop shadow={shadow xshift=0.1em,shadow yshift=-0.1em,fill=\beamer@fhtw@accent!80}},
enum shadow/.style={drop shadow={shadow xshift=0.15em,shadow yshift=-0.15em,fill=\beamer@fhtw@accent!80}},
items/.style={},
enums/.style={line width=0.075em,inner sep=0.2em,enum shadow, inner xsep=0,align=center,text=white,rounded corners=0.5pt},
}%
% ------------------------------------------------------------------------------------------------------------------- %
% Graphics
\RequirePackage{adjustbox}%
% ------------------------------------------------------------------------------------------------------------------- %
% Colors
\RequirePackage{xcolor}%
\RequirePackage{twcolors}%
% ------------------------------------------------------------------------------------------------------------------- %
% Geometry
\RequirePackage[noframe]{showframe}%
\geometry{%
marginparsep=0mm,
marginparwidth=0mm,
% footskip=1cm
% foot=-2cm,
% top=0,
% headsep=-2em,
% footskip=-10em,
}%
% ------------------------------------------------------------------------------------------------------------------- %
% Misc
\RequirePackage{xifthen}
\RequirePackage{xparse}
\RequirePackage{etoolbox}
\RequirePackage{textcomp}
% \RequirePackage{listofitems}
% ------------------------------------------------------------------------------------------------------------------- %
% ------------------------------------------------------------------------------------------------------------------- %
% Options
% ------------------------------------------------------------------------------------------------------------------- %
\DeclareOptionBeamer{toclevel}{\def\beamer@fhtw@toclevel{#1}}%
\DeclareOptionBeamer{stoclevel}{\def\beamer@fhtw@stoclevel{#1}}%
\DeclareOptionBeamer{style}{\def\beamer@fhtw@style{#1}\PassOptionsToPackage{style=#1}{beamerouterthemefhtw}}%
\DeclareOptionBeamer{framewidth}{\def\beamer@fhtw@framewidth{#1}}%
\DeclareOptionBeamer{frameamount}{\def\beamer@fhtw@frameamount{#1}}%
\DeclareOptionBeamer{gridsize}{\def\beamer@fhtw@gridsize{#1}}%
\DeclareOptionBeamer{primary}{\def\beamer@fhtw@primary{#1}}%
\DeclareOptionBeamer{secondary}{\def\beamer@fhtw@secondary{#1}}%
\DeclareOptionBeamer{accent}{\def\beamer@fhtw@accent{#1}}%
\DeclareOptionBeamer{alert}{\def\beamer@fhtw@alert{#1}}%
\DeclareOptionBeamer{ocean}{\def\beamer@fhtw@primary{tw-blue}\def\beamer@fhtw@secondary{tw-blue!70!}\def\beamer@fhtw@accent{tw-blue!50}}%
\DeclareOptionBeamer{forest}{\def\beamer@fhtw@primary{tw-green}\def\beamer@fhtw@secondary{tw-green!70!}\def\beamer@fhtw@accent{tw-green!50}}%
\DeclareOptionBeamer{concrete}{\def\beamer@fhtw@primary{tw-gray}\def\beamer@fhtw@secondary{tw-gray!70!}\def\beamer@fhtw@accent{tw-gray!50}}%
\DeclareOptionBeamer{vivid}{\def\beamer@fhtw@primary{tw-blue}\def\beamer@fhtw@secondary{tw-green}\def\beamer@fhtw@accent{tw-gray}}%
\DeclareOptionBeamer{urban}{\def\beamer@fhtw@primary{tw-green}\def\beamer@fhtw@secondary{tw-gray}\def\beamer@fhtw@accent{tw-blue}}%
\DeclareOptionBeamer{island}{\def\beamer@fhtw@primary{tw-green}\def\beamer@fhtw@secondary{tw-blue}\def\beamer@fhtw@accent{tw-gray}}%
\DeclareOptionBeamer{lollipop}{\def\beamer@fhtw@primary{ttw-violett}\def\beamer@fhtw@secondary{ttw-red!70!ttw-violett!70!}\def\beamer@fhtw@accent{tw-blue!50}}%
\DeclareOptionBeamer{metal}{\def\beamer@fhtw@primary{tw-gray}\def\beamer@fhtw@secondary{tw-blue}\def\beamer@fhtw@accent{tw-green}}%
\DeclareOptionBeamer{left}{\def\beamer@fhtw@sidebarside{left}\def\beamer@fhtw@sidebarsideother{right}\PassOptionsToPackage{left}{beamerouterthemefhtw}\def\beamer@sidebarside{left}}%
\DeclareOptionBeamer{right}{\def\beamer@fhtw@sidebarside{right}\def\beamer@fhtw@sidebarsideother{left}\PassOptionsToPackage{right}{beamerouterthemefhtw}\def\beamer@sidebarside{right}}%
\DeclareOptionBeamer{sidebarwidth}{\def\beamer@fhtw@sidebarwidth{#1}}%
\DeclareOptionBeamer{sidebarnavsep}{\def\beamer@fhtw@sidebarnavsep{#1}\PassOptionsToPackage{sidebarnavsep=#1}{beamerouterthemefhtw}}%
\DeclareOptionBeamer{hideothersidebarsections}{\def\beamer@fhtw@hideothersidebarsections{\relax}}%
\DeclareOptionBeamer{hideothersidebarsubsections}{\def\beamer@fhtw@hideothersidebarsubsections{\relax}}%
\DeclareOptionBeamer{hideothersectionsidebarsubsections}{\def\beamer@fhtw@hideothersectionsidebarsubsections{\relax}}%
\DeclareOptionBeamer{hideothersidebarsubsubsections}{\def\beamer@fhtw@hideothersidebarsubsubsections{\relax}}%
\DeclareOptionBeamer{showframes}{\def\beamer@fhtw@frames{black}\PassOptionsToPackage{showframes}{beamerouterthemefhtw}}%
\DeclareOptionBeamer{noframes}{\def\beamer@fhtw@frames{none}\PassOptionsToPackage{noframes}{beamerouterthemefhtw}}%
% ------------------------------------------------------------------------------------------------------------------- %
% Default Options
\ExecuteOptionsBeamer{%
toclevel=3,%
style=fhtw,%
gridsize=10,%
vivid,%
alert=ttw-red,%
framewidth=2,%
frameamount=42,%
right,%
sidebarwidth=0.25\paperwidth,%
sidebarnavsep=0.75em,%
noframes,%
% hideothersidebarsections,%
% hideothersidebarsubsections,%
hideothersectionsidebarsubsections,%
hideothersidebarsubsubsections,%
}%
\ProcessOptionsBeamer\relax%
% ------------------------------------------------------------------------------------------------------------------- %
% Commands
% ------------------------------------------------------------------------------------------------------------------- %
\RequirePackage{util/commands}%
% ------------------------------------------------------------------------------------------------------------------- %
% Theme Settings
% ------------------------------------------------------------------------------------------------------------------- %
\setbeamersize{text margin left=8mm,text margin right=8mm,sidebar width \beamer@sidebarside=\beamer@fhtw@sidebarwidth}%
% \setlength{\footheight}{0mm}%
% ------------------------------------------------------------------------------------------------------------------- %
% Utils
% ------------------------------------------------------------------------------------------------------------------- %
\RequirePackage{util/fhtw}%
\RequirePackage{util/fhtw-light}%
\RequirePackage{util/fhtw-simple}%
\RequirePackage{util/fhtw-random}%
\RequirePackage{util/fhtw-random-simple}%
\RequirePackage{util/noir}%
\RequirePackage{util/noir-bridge}%
\RequirePackage{util/noir-bridge-color}%
\RequirePackage{util/bridge}%
\RequirePackage{util/simple}%
\RequirePackage{util/complex}%
\usecolortheme{fhtw}%
\usefonttheme{fhtw}%
\useoutertheme{fhtw}%
\useinnertheme{fhtw}%
\setbeamertemplate{section in toc}[fhtw]
\setbeamertemplate{subsection in toc}[fhtw]
\setbeamertemplate{subsubsection in toc}[fhtw]
\setbeamertemplate{itemize item}[fhtw]
\setbeamertemplate{itemize subitem}[fhtw]
\setbeamertemplate{itemize subsubitem}[fhtw]
\setbeamertemplate{enumerate item}[fhtw]
\setbeamertemplate{enumerate subitem}[fhtw]
\setbeamertemplate{enumerate subsubitem}[fhtw]
% \setbeamertemplate{enumerate item}[square]
\mode<all>
\ No newline at end of file
% Color Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Font Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Outer Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------------------------------------------------------------------------- %
% Navigation Symbols
% ------------------------------------------------------------------------------------------------------------------- %
\defbeamertemplate{navigation symbols}{bridge}{}%
% ------------------------------------------------------------------------------------------------------------------- %
% Logo
% ------------------------------------------------------------------------------------------------------------------- %
% \defbeamertemplate{logo}{bridge}{}
\beamer@fhtw@reusestyle{bridge}{logo}{noir}
% ------------------------------------------------------------------------------------------------------------------- %
% Background
% ------------------------------------------------------------------------------------------------------------------- %
\defbeamertemplate{background}{bridge}{\placetikzbackground{=1}{\fitpageandcenter{fhtw-bridge}}}
% ------------------------------------------------------------------------------------------------------------------- %
% Title Page
% ------------------------------------------------------------------------------------------------------------------- %
% \defbeamertemplate{title page}{bridge}{}
\beamer@fhtw@reusestyle{bridge}{title page}{noir}
% ------------------------------------------------------------------------------------------------------------------- %
% Sidebar Canvas
% ------------------------------------------------------------------------------------------------------------------- %
% \defbeamertemplate{sidebar canvas \beamer@fhtw@sidebarsidebridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{sidebar canvas \beamer@fhtw@sidebarside}{fhtw}
% ------------------------------------------------------------------------------------------------------------------- %
% Sidebar Sections
% ------------------------------------------------------------------------------------------------------------------- %
% \defbeamertemplate{section in sidebarbridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{section in sidebar}{fhtw}
% \defbeamertemplate{subsection in sidebarbridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{subsection in sidebar}{fhtw}
% \defbeamertemplate{subsubsection in sidebarbridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{subsubsection in sidebar}{fhtw}
% \defbeamertemplate{section in sidebar shadedbridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{section in sidebar shaded}{fhtw}
% \defbeamertemplate{subsection in sidebar shadedbridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{subsection in sidebar shaded}{fhtw}
% \defbeamertemplate{subsubsection in sidebar shadedbridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{subsubsection in sidebar shaded}{fhtw}
% ------------------------------------------------------------------------------------------------------------------- %
% Sidebar
% ------------------------------------------------------------------------------------------------------------------- %
% \defbeamertemplate{sidebar \beamer@fhtw@sidebarsidebridgenoir}{}
\beamer@fhtw@reusestyle{bridge}{sidebar \beamer@fhtw@sidebarside}{fhtw}
% Inner Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------------------------------------------------------------------------- %
% fit to page and center image
% ------------------------------------------------------------------------------------------------------------------- %
\newcommand{\fitpageandcenter}[1]{%
\node at (current page.center) {
\includegraphics[width=\paperwidth]{#1}};%
}%
% ------------------------------------------------------------------------------------------------------------------- %
% place TikZ background
% ------------------------------------------------------------------------------------------------------------------- %
\newcommand{\placetikzbackground}[3][]{%
\ifnum\thepage#2\relax%
\begin{tikzpicture}[#1]%
\useasboundingbox (0,0) rectangle(\paperwidth,\paperheight);%
#3%
\end{tikzpicture}%
\fi%
}%
% ------------------------------------------------------------------------------------------------------------------- %
% shadowed text
% ------------------------------------------------------------------------------------------------------------------- %
\NewDocumentCommand{\shadowedtext}{O{text=white} O{text=black} O{.5pt} m m m}{%
\foreach \angle in {0,5,...,359}{%
\node[align=left,anchor=north west,text width=#5,shift={(\angle:#3)},#2] at #4 {#6};%
}%
\node[align=left,anchor=north west,text width=#5,#1] at #4 {#6};%
}
% ------------------------------------------------------------------------------------------------------------------- %
% sliced circular progressbar
% ------------------------------------------------------------------------------------------------------------------- %
\newcommand{\slicedcircularprogressbar}[9]{%
% Syntax: \slicedcircularprogressbar {coordinate} {outer radius} {inner radius} {opening angle}
% {page total} {current page} {base color} {fill color} {bg color}
\def\ratio{#6/#5}%
\def\outerradius{#2}%
\def\innerradius{#3}%
\coordinate (centerprogressbar) at #1;%
\draw[draw=none,fill=#7] (centerprogressbar) circle (\outerradius);%
\draw[draw=none,fill=#8] (centerprogressbar) -- (centerprogressbar) ++(0,\outerradius) arc (90:90-360*\ratio:\outerradius) -- (centerprogressbar);%
\draw[draw=none,fill=#9] (centerprogressbar) circle (\innerradius);%
\pgfmathparse{#5-1}%
\pgfmathsetmacro{\nums}{\pgfmathresult}%
\foreach \x in {0,...,\nums} {%
\pgfmathparse{360/#5*\x}%
\pgfmathsetmacro{\angl}{\pgfmathresult}%
\def\slice{#4}%
\draw[draw=none,fill=#9,line width=0.1mm] (centerprogressbar) -- +(90-\angl+\slice:\outerradius+0.1) arc (90-\angl+\slice:90-\angl-\slice*2:\outerradius) -- cycle;%
}%
}%
\NewDocumentCommand{\circularprogressbar}{ m m m m m m m m }{
\def\position{#1}
\def\radius{#2}
\def\width{#3}
\def\page{#4}
\def\pages{#5}
\def\fillcolor{#6}
\def\fillopacity{#7}
\def\padding{#8}
\pgfmathparse{360/\pages}
\pgfmathsetmacro{\delta}{\pgfmathresult}
\pgfmathparse{90-\delta}
\pgfmathsetmacro{\start}{\pgfmathresult}
\pgfmathparse{\start-\delta}
\pgfmathsetmacro{\step}{\pgfmathresult}
\pgfmathparse{-360+\start}
\pgfmathsetmacro{\stop}{\pgfmathresult}
\coordinate (center) at #1;
\foreach \x [count=\idx] in {\start,\step,...,\stop} {
\ifnum\idx<\page\relax\def\opacity{1}\else\ifnum\idx=\page\relax\def\opacity{1}\else\def\opacity{\fillopacity}\fi\fi
\draw[draw=\fillcolor,line width=\width,opacity=\opacity] (center) +(\x:\radius) arc[start angle=\x, delta angle=\delta-\padding, radius=\radius];
}
}
% ------------------------------------------------------------------------------------------------------------------- %
% set beamer style
% ------------------------------------------------------------------------------------------------------------------- %
\newcommand{\beamer@fhtw@setstyle}[2]{\setbeamertemplate{#1}[#2]}%
% ------------------------------------------------------------------------------------------------------------------- %
% reuse beamer style (conditionally)
% ------------------------------------------------------------------------------------------------------------------- %
\newcommand{\beamer@fhtw@reusestyle}[3]{\ifthenelse{\equal{\beamer@fhtw@style}{#1}}{\setbeamertemplate{#2}[#3]}{}}%
% ------------------------------------------------------------------------------------------------------------------- %
% Title (redefined)
% ------------------------------------------------------------------------------------------------------------------- %
\RenewDocumentCommand{\logo}{O{1cm} m}{
\def\beamer@fhtw@logowidth{#1}
\def\beamer@fhtw@logofile{#2}
}
% ------------------------------------------------------------------------------------------------------------------- %
% Title (redefined)
% ------------------------------------------------------------------------------------------------------------------- %
\RenewDocumentCommand{\title}{O{#2} m}{
\def\insertshorttitle{#1}
\def\inserttitle{#2}
}
% ------------------------------------------------------------------------------------------------------------------- %
% Author (redefined)
% ------------------------------------------------------------------------------------------------------------------- %
\RenewDocumentCommand{\author}{O{#2} m}{
\def\insertshortauthor{#1}
\def\insertauthor{#2}
}
% ------------------------------------------------------------------------------------------------------------------- %
% Mail
% ------------------------------------------------------------------------------------------------------------------- %
\newcommand{\mail}[1]{
\def\insertmail{\texttt{#1}}
}
% ------------------------------------------------------------------------------------------------------------------- %
% Keywords (redefined)
% ------------------------------------------------------------------------------------------------------------------- %
\renewcommand*{\keywords}[1]{\def\insertkeywords{#1}}
\ No newline at end of file
% Color Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Font Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Outer Theme %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ------------------------------------------------------------------------------------------------------------------- %
% Navigation Symbols
% ------------------------------------------------------------------------------------------------------------------- %
\defbeamertemplate{navigation symbols}{complex}{}%
% ------------------------------------------------------------------------------------------------------------------- %
% Logo
% ------------------------------------------------------------------------------------------------------------------- %
\defbeamertemplate{logo}{complex}{%
\placetikzbackground[overlay,remember picture]{=1}{%
\node[anchor=north east,fill=white,inner sep=2mm] at ($(current page.north east)+(-0.025\paperwidth,-0.05\paperheight)$) {%
\includegraphics[width=\beamer@fhtw@logowidth]{\beamer@fhtw@logofile}};%
}%
}
% ------------------------------------------------------------------------------------------------------------------- %
% Background
% ------------------------------------------------------------------------------------------------------------------- %
\defbeamertemplate{background}{complex}{%
\placetikzbackground{=1}{%
\def\gridsize{\beamer@fhtw@gridsize}%
\pgfmathsetmacro\aratio{\paperheight/\paperwidth}%
\pgfmathsetmacro\rwidth{\paperwidth/\gridsize/1cm}%
\pgfmathsetmacro\sgridsize{round(\gridsize*\aratio)}%
\pgfmathsetmacro\rheight{\paperheight/\sgridsize/1cm}%
\pgfmathdeclarerandomlist{colors}{%
{tw-green}%
{tw-blue}%
{tw-gray}%
}%
\foreach \x in {0,1,...,\gridsize} {%
\foreach \y in {0,1,...,\gridsize} {%
\pgfmathrandomitem{\randomcolor}{colors}%
\fill[color=\randomcolor,draw=white,line width=0.5mm] (\x * \rwidth, \y * \rheight) rectangle ++(\rwidth,\rheight);%
}%
}%
}%
\placetikzbackground{>1}{%
\coordinate (start) at ($(current page.south west)+(0<