# In Beamer, how do you change the background color of an enumerated list inside an exampleblock?

I am trying to set the background color of the numbers in numbered lists that appear in my example blocks in Beamer. I thought this would do it:

\setbeamercolor{item projected example}{fg=red, bg=yellow}


It does not work. In the example below, I would like to have the numbers "1" and "2" on a dark green background.

-

In the absence of a complete MWE it's hard to tell, but the following seems to produce what you want

The important line is

\setbeamertemplate{enumerate item}[square]


Note that the colour of the \item will change within the example block, but not outside of it.

Complete MWE

\documentclass{beamer}
\setbeamertemplate{enumerate item}[square]
\usecolortheme{rose}

\begin{document}
\begin{frame}{Inside an example}
\begin{example}
\begin{enumerate}
\item hello
\item world
\end{enumerate}
\end{example}
\end{frame}

\begin{frame}{Outside example}
\begin{enumerate}
\item one
\item two
\end{enumerate}
\end{frame}
\end{document}

-
Thanks, that worked perfectly. It has greatly simplified my template too! – Fr. Feb 17 '13 at 4:39
@gonzalomedina: While the answer by cmhughes shows the cleaner approach, your answer is more generic and just shows a different approach. I don't think it should be deleted. – Daniel Feb 17 '13 at 8:25