I'm trying to create a beamer theme that has some colored boxes at the very top and bottom of each slide. So far, I have copied the default theme and added an empty beamercolorbox to it. While this works, I get a while line between the border line and the subsequent header box. Where does this line come from and how do I get rid of it?



\setbeamercolor{top/bottom bar}{fg=red,bg=red}
  \advance\@tempdima by\beamer@leftmargin%
  \advance\@tempdima by\beamer@rightmargin%
  \begin{beamercolorbox}[ht=1.26mm,dp=0mm,wd=\the\@tempdima,colsep=0mm]{top/bottom bar}% <-- INSERTED THIS
  \end{beamercolorbox}% <-- INSERTED THIS
    \if@tempswa\else\csname beamer@fte1\endcsname\fi%
    \if@tempswa\else\vskip-.3cm\fi% set inside beamercolorbox... evil here...


  \frametitle{Foo Bar}
    \item Foo
    \item Bar
    \item Baz



  \end{beamercolorbox}% <-- INSERTED THIS
\nointerlineskip% <-- INSERT THIS AS WELL
| improve this answer | |

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.