Change options name: firstcolor/secondcolor -> subsectioncolor/sectioncolor.

This commit is contained in:
Jeff Lance 2017-08-24 16:46:22 +02:00
parent a5bd1c1bcc
commit 1434b40245

View File

@ -37,29 +37,29 @@
%-- DEF OPTIONS %-- DEF OPTIONS
% firstcolor / secondcolor % sectioncolor / subsectioncolor
% option de classe % option de classe
% couleurs générales du beamer % couleurs générales du beamer
% %
% "classical" way % "classical" way
% \def\firstcolor{lapislazuli}% % \def\sectioncolor{red}%
% \define@key{cours_beamer.cls}{firstcolor}[lapislazuli]{% % \define@key{cours_beamer.cls}{section}[red]{%
% \def\firstcolor{#1}% % \def\sectioncolor{#1}%
% } % }
% %
% \def\secondcolor{-\firstcolor}% % \def\subsectioncolor{blue}%
% \define@key{cours_beamer.cls}{secondcolor}[-\firstcolor]{% % \define@key{cours_beamer.cls}{subsectioncolor}[blue]{%
% \def\secondcolor{#1}% % \def\subsectioncolor{#1}%
% } % }
\DeclareOptionX{firstcolor}[lapislazuli]{% \DeclareOptionX{sectioncolor}[red]{%
\def\firstcolor{#1}% \def\sectioncolor{#1}%
} }
\DeclareOptionX{secondcolor}[-\firstcolor]{% \DeclareOptionX{subsectioncolor}[blue]{%
\def\secondcolor{#1}% \def\subsectioncolor{#1}%
} }
\ExecuteOptionsX{firstcolor, secondcolor} \ExecuteOptionsX{sectioncolor, subsectioncolor}
\ProcessOptionsX \ProcessOptionsX
%-------------- %--------------
@ -141,9 +141,9 @@
} }
} }
\setbeamertemplate{section in toc}[sections numbered roman] \setbeamertemplate{section in toc}[sections numbered roman]
\setbeamercolor{section in toc}{fg=\secondcolor} \setbeamercolor{section in toc}{fg=\subsectioncolor}
\setbeamertemplate{subsection in toc}[bullets] \setbeamertemplate{subsection in toc}[bullets]
\setbeamercolor{subsection in toc}{fg=\firstcolor} \setbeamercolor{subsection in toc}{fg=\subsectioncolor}
%%%%%%%%%%% %%%%%%%%%%%
@ -158,7 +158,7 @@
\mdfdefinestyle{partie}{ \mdfdefinestyle{partie}{
outerlinewidth=1em, outerlinecolor=white,% outerlinewidth=1em, outerlinecolor=white,%
% leftmargin=-1em, rightmargin=-1em,% % leftmargin=-1em, rightmargin=-1em,%
middlelinewidth=1.2pt, linecolor={\secondcolor},roundcorner=5pt,% middlelinewidth=1.2pt, linecolor={\sectioncolor},roundcorner=5pt,%
apptotikzsetting={ apptotikzsetting={
\tikzset{ \tikzset{
mdfbackground/.append style={ mdfbackground/.append style={
@ -171,7 +171,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=\firstcolor,roundcorner=5pt,% middlelinewidth=1.2pt, linecolor=\subsectioncolor,roundcorner=5pt,%
apptotikzsetting={ apptotikzsetting={
\tikzset{ \tikzset{
mdfbackground/.append style={ mdfbackground/.append style={
@ -227,7 +227,7 @@
\begin{frame} \begin{frame}
\begin{center} \begin{center}
\begin{mdframed}[style=partie] \begin{mdframed}[style=partie]
\centering \textcolor{\secondcolor}{\textbf{ \cType{partiecounter}. #1}} \centering \textcolor{\sectioncolor}{\textbf{ \cType{partiecounter}. #1}}
\end{mdframed} \end{mdframed}
\end{center} \end{center}
\end{frame} \end{frame}
@ -240,7 +240,7 @@
\begin{frame} \begin{frame}
\begin{center} \begin{center}
\begin{mdframed}[style=sspartie] \begin{mdframed}[style=sspartie]
\centering \textcolor{\firstcolor}{\textbf{ \cType{sspartiecounter}) #1}} \centering \textcolor{\subsectioncolor}{\textbf{ \cType{sspartiecounter}) #1}}
\end{mdframed} \end{mdframed}
\end{center} \end{center}
\end{frame} \end{frame}