如何改变框架标题周围“阴影”的颜色(Latex beamer)

如何改变框架标题周围“阴影”的颜色(Latex beamer)

如何将框架标题周围的蓝色阴影更改为其他颜色?或者甚至去掉阴影

框架标题周围有蓝色阴影的屏幕截图

[解决方案:我在 \begin{document} 之后使用了 \setbeamercolor 设置。在此之前写入即可解决问题。]

答案1

Warsaw可以修改topshade颜色。

\documentclass{beamer}%
\usetheme{Warsaw}
\setbeamercolor{frametitle right}{bg=cyan!90}
\setbeamercolor{structure}{fg=cyan!90}
\mode<presentation>
%\setbeamercolor{background canvas}{bg=yellow}
\definecolor{dgreen}{rgb}{0.,0.6,0.}
\makeatletter
\pgfdeclarehorizontalshading[frametitle.bg,frametitle right.bg]{beamer@frametitleshade}{\paperheight}{% Frametitle
    color(0pt)=(dgreen);
    color(\paperwidth)=(frametitle right.bg)}
\AtBeginDocument{
    \pgfdeclareverticalshading{beamer@topshade}{\paperwidth}{%
        color(4pt)=(blue);
        color(8pt)=(blue!50!bg)    
    }
}
\begin{document}

\section{A section}
\begin{frame}
  \frametitle{A section}
  \begin{itemize}
    \item Test test
    \begin{itemize}
        \item Test test
        \begin{itemize}
            \item Test test

        \end{itemize}
    \end{itemize}
  \end{itemize}

\end{frame}
\section{Another section}
\begin{frame}
  \frametitle{Another section}
  Yes!  Test test
\end{frame}
\section{Final section}
\begin{frame}
  \frametitle{Final section}
  No!  Test test
\end{frame}

\end{document}

在此处输入图片描述

相关内容