Closed Flo-Wo closed 7 years ago
Here you go:
\documentclass{beamer}
\usetheme[outer/progressbar=foot]{metropolis}
\makeatletter
% change width of progressbar
\setlength{\metropolis@progressinheadfoot@linewidth}{10pt} % <-- insert desired value here
% redefine standout frame to set different background color
\define@key{beamerframe}{standout}[true]{%
\booltrue{metropolis@standout}
\begingroup
\setkeys{beamerframe}{c}
\metroset{numbering=none}
\setbeamercolor{background canvas}{
bg=gray % <-- set color here
}
\centering
\usebeamercolor[fg]{palette primary}
\usebeamerfont{standout}
}
\makeatother
\begin{document}
\begin{frame}{Bigger progress bar in footer}
Hello, world!
\end{frame}
\begin{frame}[standout]
Different background color!
\end{frame}
\end{document}
Some explanations:
\metropolis@progressinheadfoot@linewidth
.
palette primary
. Thus to only redefine the background color of the standout frame you have to redefine the whole standout
frame option.@matze While testing the redefinition of the standout frame I discovered a bug. Actually the frame numbering is still active on a standout frame, because \setkeys{beamerframe}{noframenumbering}
doesn't work anymore. It is just not visible as the same color as the canvas is used. It should be \metroset{numbering=none}
. Feel free to fix it, I'm too lazy to do a pull request right now. 😏
And another thought: should we disable the header/footer completely for standout frames? I'm not sure.
Thank very much
You are welcome!
Is there a possibility to get a bigger/higher progress bar (activated through \usetheme[outer/progressbar=foot]{metropolis}) in the footer?
How can I change the background color of the standout frames?
Thank you very much