# beamer \usebackgroundtemplate \vbox to \paperhigth too low

In my presentation on each frame (including title frame) I need a background image and a footer line on each frame with the companies name (so that the image begins direclty upon this footer line).

I managed to add the image and the footer line as needed using \usebackgroundtemplate \vbox to \paperhigth taken from this answer: Beamer background image centered And the colorbox part from this answer: How to make \colorbox fill the color between underline and overline of a text?

But my footer line starts too low so that the text in it is cut by the frame edge: How do I raise the \colorbox (and the picture not shown) by about .5em?
Desired output is:

This is my sample code:

    \documentclass[aspectratio=169]{beamer}
\usepackage{color}
\definecolor{gray}{rgb}{0.76, 0.76, 0.76}
\definecolor{dark-gray}{rgb}{0.36, 0.36, 0.36}
\usebackgroundtemplate{%
\vbox to \paperheight{
\vfil
\colorbox{dark-gray}{
\makebox [\paperwidth][l]{
\tiny\color{gray}{
}
}
}
}
}

\begin{document}
\begin{frame}{ }
test
\end{frame}
\end{document}


You could specify the height of the box:

\documentclass[aspectratio=169]{beamer}
\definecolor{gray}{rgb}{0.76, 0.76, 0.76}
\definecolor{dark-gray}{rgb}{0.36, 0.36, 0.36}
\usebackgroundtemplate{%
\vbox to \paperheight{
\vfil
\colorbox{dark-gray}{
\makebox(442,8)[lt]{
\tiny\color{gray}{
}
}
}
}
}

\begin{document}
\begin{frame}
test
\end{frame}
\end{document}


EDIT:

To use other than the default coordinates:

\documentclass[aspectratio=169]{beamer}
\definecolor{gray}{rgb}{0.76, 0.76, 0.76}
\definecolor{dark-gray}{rgb}{0.36, 0.36, 0.36}
\usebackgroundtemplate{%
\vbox to \paperheight{
\vfil
\colorbox{dark-gray}{
\setlength{\unitlength}{\paperwidth}
\makebox(1,0.02)[lt]{
\tiny\color{gray}{
}
}
}
}
}

\begin{document}
\begin{frame}
test
\end{frame}
\end{document}

• can I use length aliases like \pagewidth, \textheight? Oct 28 '16 at 14:12
• No. But you could change the unit of the coordinates, see my edit. Oct 28 '16 at 14:18
• This lets the grey bar begin after the image. :o( Oct 28 '16 at 14:31
• solved, i needed an empty line between image and colorbox... :o) Oct 28 '16 at 14:34