0

For the beamer metropolis theme:

How to make the top bar taller? and is there a way to make it transparent (perhaps using TiKz)?

1 Answer 1

1

You can adjust the size via

\setlength{\metropolis@frametitle@padding}{5ex}

And the opacity can be changed like this (adjust \pgfsetfillopacity{0.3} to whatever value you like):

\documentclass{beamer}
\usetheme{metropolis}

\makeatletter
\setlength{\metropolis@frametitle@padding}{5ex}

\setbeamertemplate{frametitle}{%
  \nointerlineskip%
  \pgfsetfillopacity{0.3}
  \begin{beamercolorbox}[%
      wd=\paperwidth,%
      sep=0pt,%
      leftskip=\metropolis@frametitle@padding,%
      rightskip=\metropolis@frametitle@padding,%
    ]{frametitle}%
  \pgfsetfillopacity{1}
  \metropolis@frametitlestrut@start%
  \insertframetitle%
  \nolinebreak%
  \metropolis@frametitlestrut@end%
  \end{beamercolorbox}%
  \pgfsetfillopacity{1}
}

\makeatother

\setbeamertemplate{background canvas}{\includegraphics[height=\paperheight]{example-image-duck}}

\begin{document}
\begin{frame}
\frametitle{title}
\end{frame}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.