Change color in beamer theme
I am offline for the rest of the week. If somebody sees a mistake etc. -- just edit it.
- I don't see any yellow color.
- This why a so-called minimal working example (MWE) is needed to avoid such problems.
- Look for the file
beamercolorthemebeaver.sty
on your computer. Here are the colors defined. See below.
beamercolorthemebeaver.sty
% Copyright 2004 by Madhusudan Singh <[email protected]>
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.
\mode<presentation>
\definecolor{darkred}{rgb}{0.8,0,0}
\setbeamercolor{section in toc}{fg=black,bg=white}
\setbeamercolor{alerted text}{fg=darkred!80!gray}
\setbeamercolor*{palette primary}{fg=darkred!60!black,bg=gray!30!white}
\setbeamercolor*{palette secondary}{fg=darkred!70!black,bg=gray!15!white}
\setbeamercolor*{palette tertiary}{bg=darkred!80!black,fg=gray!10!white}
\setbeamercolor*{palette quaternary}{fg=darkred,bg=gray!5!white}
\setbeamercolor*{sidebar}{fg=darkred,bg=gray!15!white}
\setbeamercolor*{palette sidebar primary}{fg=darkred!10!black}
\setbeamercolor*{palette sidebar secondary}{fg=white}
\setbeamercolor*{palette sidebar tertiary}{fg=darkred!50!black}
\setbeamercolor*{palette sidebar quaternary}{fg=gray!10!white}
%\setbeamercolor*{titlelike}{parent=palette primary}
\setbeamercolor{titlelike}{parent=palette primary,fg=darkred}
\setbeamercolor{frametitle}{bg=gray!10!white}
\setbeamercolor{frametitle right}{bg=gray!60!white}
\setbeamercolor*{separation line}{}
\setbeamercolor*{fine separation line}{}
\mode
<all>
MWE
\documentclass{beamer}
\usetheme{AnnArbor}
\usecolortheme{beaver}
\begin{document}
\begin{frame}{Test}
Test
\end{frame}
\end{document}
Changing the Colors
\documentclass{beamer}
\usetheme{AnnArbor}
\usecolortheme{beaver}
\definecolor{myNewColorA}{rgb}{0,0,100}
\definecolor{myNewColorB}{rgb}{0,100,100}
\definecolor{myNewColorC}{rgb}{0,200,100}
\definecolor{myNewColorD}{rgb}{0,100,200}
\setbeamercolor*{palette primary}{bg=myNewColorA, fg = green}
\setbeamercolor*{palette secondary}{bg=myNewColorB, fg = green}
\setbeamercolor*{palette tertiary}{bg=myNewColorC, fg = green}
\setbeamercolor*{palette quaternary}{bg=myNewColorD, fg = green}
\begin{document}
\begin{frame}{Test}
Test
\end{frame}
\end{document}
AnnArbor
defines the background color for titles (and similar) with:
\setbeamercolor{titlelike}{parent=structure,bg=yellow!85!orange}
(see beamerthemeAnnArbor.sty
).
To change it into a kind of blue you can use something like:
\documentclass{beamer}
\usepackage[spanish,activeacute]{babel}
\usetheme{AnnArbor}
\usecolortheme{beaver}
\setbeamercolor{titlelike}{parent=structure,bg=cyan}
\begin{document}
\title{My title}
\author{My name}
\date{\today}
\begin{frame}
\titlepage
\end{frame}
\end{document}
The result is:
Changing the foreground color is as easy, e.g., use
\setbeamercolor{titlelike}{parent=structure,fg=yellow,bg=cyan}
to get
See the beamer
manual for more information about \setbeamercolor
and keys like fg
and bg
.