更改大都市主题标题栏

更改大都市主题标题栏

我使用此代码进行大都会投影仪演示(感谢这里的一位用户!)

\documentclass{beamer}

\usetheme{metropolis}

\definecolor{myblue}{RGB}{76,138,225}

\setbeamercolor{palette primary}{bg=myblue}
\setbeamercolor{structure}{fg=myblue}
\setbeamercolor{block title}{fg=red,bg=lightgray!50}
\setbeamercolor{block body}{bg=lightgray!25}
\setbeamercolor{progress bar in section page}{fg=myblue}
\setbeamercolor{titlelike}{fg=orange}

\setbeamertemplate{itemize items}[triangle]

% ----------------------------------------------------------
% Einstellungen Titelfolien
\title{Aufbau von tragfähigen Grundvorstellungen zu diskreten Zufallsvariablen}
\subtitle{Untertitel zu bestimmen}
% \date{\today}
\author{author}
\date{date}

\begin{document}

\maketitle
  
\begin{frame}
\frametitle{title}
    abc
  
  \begin{definition}[test]
  content...
  \end{definition}
  
  \begin{itemize}
  \item test
  \end{itemize}
\end{frame} 

\section{title}
  

    
\end{document}

它在标题页上产生了一个橙色条。有人知道如何将颜色改为蓝色吗?如图所示,我希望线条是蓝色的。

在此处输入图片描述

答案1

两种可能性:

  • \setbeamercolor{progress bar}{fg=myblue}将改变所有进度条的颜色,无论是在标题页还是章节页

  • \setbeamercolor{title separator}{fg=myblue}只会改变标题页的颜色


\documentclass{beamer}

\usetheme{moloch}% modern fork of the metropolis theme

\definecolor{myblue}{RGB}{76,138,225}

\setbeamercolor{palette primary}{bg=myblue}
\setbeamercolor{structure}{fg=myblue}
\setbeamercolor{block title}{fg=red,bg=lightgray!50}
\setbeamercolor{block body}{bg=lightgray!25}
\setbeamercolor{progress bar}{fg=myblue}
\setbeamercolor{titlelike}{fg=orange}
%\setbeamercolor{title separator}{fg=myblue}

\setbeamertemplate{itemize items}[triangle]

% ----------------------------------------------------------
% Einstellungen Titelfolien
\title{Aufbau von tragfähigen Grundvorstellungen zu diskreten Zufallsvariablen}
\subtitle{Untertitel zu bestimmen}
% \date{\today}
\author{author}
\date{date}

\begin{document}

\maketitle
  
\begin{frame}
\frametitle{title}
    abc
  
  \begin{definition}[test]
  content...
  \end{definition}
  
  \begin{itemize}
  \item test
  \end{itemize}
\end{frame} 

\section{title}
  

    
\end{document}

在此处输入图片描述

相关内容