define new main color for beamer theme

This commit is contained in:
Jeff Lance 2016-08-16 17:15:58 +02:00
parent c1f6e92246
commit 174c07e3ce

View File

@ -33,19 +33,20 @@
%-- definitions %-- definitions
%--% %--%
%-- paramètrages %-- paramètrages
\graphicspath{{images/}} \graphicspath{{images/}}
\addmediapath{{videos/}} \addmediapath{{videos/}}
% theme beamer
\usetheme{Madrid} \usetheme{Madrid}
\useinnertheme{circles} \useinnertheme{circles}
\useoutertheme{default} \useoutertheme{default}
\usefonttheme[onlymath]{serif} \usefonttheme[onlymath]{serif}
\usecolortheme[named=lapislazuli]{structure}
% enumerate % enumerate
\setbeamerfont{enumerate item}{family=\rmfamily} \setbeamerfont{enumerate item}{family=\rmfamily}
\setbeamercolor{enumerate item}{fg=black}
\setbeamertemplate{enumerate item}{\textbf{\insertenumlabel.}} \setbeamertemplate{enumerate item}{\textbf{\insertenumlabel.}}
% itemize % itemize
@ -106,7 +107,7 @@
\mdfdefinestyle{sspartie}{ \mdfdefinestyle{sspartie}{
outerlinewidth=1em, outerlinecolor=white,% outerlinewidth=1em, outerlinecolor=white,%
% leftmargin=-1em, rightmargin=-1em,% % leftmargin=-1em, rightmargin=-1em,%
middlelinewidth=1.2pt, linecolor=blue,roundcorner=0pt,% middlelinewidth=1.2pt, linecolor=lapislazuli,roundcorner=5pt,%
apptotikzsetting={ apptotikzsetting={
\tikzset{ \tikzset{
mdfbackground/.append style={ mdfbackground/.append style={
@ -176,7 +177,7 @@
\begin{frame} \begin{frame}
\begin{center} \begin{center}
\begin{mdframed}[style=sspartie] \begin{mdframed}[style=sspartie]
\centering \textcolor{blue}{\textbf{ \cType{sspartiecounter}) #1}} \centering \textcolor{lapislazuli}{\textbf{ \cType{sspartiecounter}) #1}}
\end{mdframed} \end{mdframed}
\end{center} \end{center}
\end{frame} \end{frame}
@ -200,7 +201,7 @@
% definition de divers blocks personnels : definition, theoreme, exemple, % definition de divers blocks personnels : definition, theoreme, exemple,
% exercice (avec numerotation), remarque, methode. % exercice (avec numerotation), remarque, methode.
\NewDocumentEnvironment{déf}{ s g }{%begin \NewDocumentEnvironment{déf}{ s g }{%begin
\setbeamercolor{block title}{fg=white,bg=amethyst!95!white} \setbeamercolor{block title}{fg=red,bg=blush!10!white}
\IfBooleanTF #1 \IfBooleanTF #1
{ {
\IfNoValueTF {#2} { \IfNoValueTF {#2} {
@ -221,7 +222,7 @@
} }
% %
\NewDocumentEnvironment{thm}{ g }{%begin \NewDocumentEnvironment{thm}{ g }{%begin
\setbeamercolor{block title}{fg=white,bg=cerisepink!95!white} \setbeamercolor{block title}{fg=white,bg=red!90!white}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Théorème} \begin{block} {Théorème}
}{ }{
@ -232,7 +233,7 @@
} }
% %
\NewDocumentEnvironment{ppt}{ g }{%begin \NewDocumentEnvironment{ppt}{ g }{%begin
\setbeamercolor{block title}{fg=crimson,bg=pink!95!white} \setbeamercolor{block title}{fg=white,bg=brickred!90!white}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Propriété} \begin{block} {Propriété}
}{ }{
@ -243,7 +244,7 @@
} }
% %
\NewDocumentEnvironment{pre}{ g }{%begin \NewDocumentEnvironment{pre}{ g }{%begin
\setbeamercolor{block title}{fg=white,bg=airforceblue!75!white} \setbeamercolor{block title}{fg=hanblue,bg=airforceblue!10!white}
\IfNoValueTF {#1} { \IfNoValueTF {#1} {
\begin{block} {Preuve} \begin{block} {Preuve}
}{ }{
@ -261,7 +262,7 @@
% } % }
% %
\NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin \NewDocumentEnvironment{rmq}{ G{Remarque} }{%begin
\setbeamercolor{block title}{fg=white,bg=red!75!black}% \setbeamercolor{block title}{fg=blush,bg=blush!10!white}%fg=white,bg=cerisepink!80!white}%
\begin{block} {#1} \begin{block} {#1}
}{%end }{%end
\end{block} \end{block}
@ -314,7 +315,7 @@
} }
% %
\NewDocumentEnvironment{exe}{ G{Exemple} }{%begin \NewDocumentEnvironment{exe}{ G{Exemple} }{%begin
\setbeamercolor{block title}{fg=white,bg=green!75!black}% \setbeamercolor{block title}{fg=darkspringgreen,bg=green!10!white}%
\begin{block} {#1} \begin{block} {#1}
}{%end }{%end
\end{block} \end{block}
@ -322,7 +323,7 @@
% %
\newcounter{exercicecounter} \newcounter{exercicecounter}
\NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin \NewDocumentEnvironment{exo} { O{0} G{Exercice} }{%begin
\setbeamercolor{block title}{fg=white,bg=blue!75!black}% \setbeamercolor{block title}{fg=white,bg=airforceblue!90!white}%
\ifthenelse{ \NOT \equal{#1}{0} }{ \ifthenelse{ \NOT \equal{#1}{0} }{
\ifthenelse{ \equal{#1}{i} } \ifthenelse{ \equal{#1}{i} }
{ {