My goal is to switch the backgroundtemplate for every \AtBeginSection{}-frame. This is working so far, but the logo-region is overlaying the background with a plain white region.
I'm using \useoutertheme{sidebar}. I had this problem before, when i wanted to not include an actual logo, but include the logo and the gray region in \usebackgroundtemplate{}. The issue was also, that the logo-region was overlaid with white. I consider the way it works right now as a hack, as i've put the gray background and the logo inside a \tikz{}-command inside of \logo{} with very obscure coordinates:
\logo{
\tikz{
\fill[grayborder] (-1,0) rectangle (20.7mm,1cm);
\node at (.5cm,.5cm) {\includegraphics[width=2.5cm]{Hochschule-esslingen}};
}
}
This is what my \AtBeginSection{}-command looks like at the moment:
\AtBeginSection[]{
{
\logo{}
\useoutertheme{}
\setbeamertemplate{footline}{}
\setbeamertemplate{background}{
\begin{tikzpicture}[at=(current page.south east)]
\shadedraw[shading=axis,
left color=left,
right color=right,
shading angle=135,
middle color=right,
vertical custom shading=35
]
(0,0) rectangle (\paperwidth,\paperheight);
\end{tikzpicture}
}
\begin{frame}
\textcolor{white}{\MakeUppercase{\Huge\thesection\\[.4ex]\insertsectionhead}}
\end{frame}
}
}
As an added bonus, the sidebar should also be disabled for the \AtBeginSection{}-frame, but that might be for another question.
MWE:
\documentclass[aspectratio=169]{beamer}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{right}{HTML}{002d58}
\definecolor{left}{HTML}{00aadc}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{%
\hspace{10pt}\insertdate\hfill%
\insertshorttitle\hfill%
\insertframenumber/\inserttotalframenumber\hspace{10pt}%
\vspace{8pt}%
}
\useoutertheme[%
width=3cm,
height=1cm,
hideothersubsections,
]{sidebar}
\AtBeginSection[]{
{
\useoutertheme{} % Should deactivate outertheme temporarily
\setbeamertemplate{footline}{}
\setbeamertemplate{background}{
\begin{tikzpicture}[at=(current page.south east)]
\shadedraw[shading=axis,
left color=left,
right color=right,
shading angle=135,
]
(0,0) rectangle (\paperwidth,\paperheight);
\end{tikzpicture}
}
\begin{frame}
\textcolor{white}{\MakeUppercase{\Huge\thesection\\[.4ex]\insertsectionhead}}
\end{frame}
}
}
\begin{document}
\section{First section}
\begin{frame}{Title}
Some content
\end{frame}
\begin{frame}{Title}
Some content
\end{frame}
\section{Second section}
\begin{frame}{Title}
Some content
\end{frame}
\begin{frame}{Title}
Some content
\end{frame}
\end{document}

beamerouterthemesidebar.sty, we see that the logo block is contained within abeamercolorboxenvironment, where\usebeamercolor[bg]{logo}is called. So, you can adjust the color of this rectangle using\setbeamercolor{logo}{bg=black}. Overall I think this is a bad assumption by the class, and unfortunately, I don't think LaTeX supports transparent colors, so I'm not sure what you can do here. – jessexknight Nov 25 '19 at 15:41