This commit is contained in:
Mylloon 2023-05-29 18:44:13 +02:00
parent fba9087e12
commit 2db8e599a6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 18 additions and 0 deletions

View file

@ -14,3 +14,4 @@ Options disponible :
- `code` : utilisation de `minted` - `code` : utilisation de `minted`
- `fr` : utilisation de `babel` - `fr` : utilisation de `babel`
- `dark` : thème sombre

View file

@ -7,6 +7,8 @@
\DeclareOption{code}{\option@codetrue} \DeclareOption{code}{\option@codetrue}
\newif\ifoption@fr \newif\ifoption@fr
\DeclareOption{fr}{\option@frtrue} \DeclareOption{fr}{\option@frtrue}
\newif\ifoption@dark
\DeclareOption{dark}{\option@darktrue}
\ProcessOptions \ProcessOptions
\ifoption@code \ifoption@code
@ -25,6 +27,21 @@
numbering=fraction numbering=fraction
]{metropolis} ]{metropolis}
\ifoption@dark
% Dark theme
\setbeamercolor{normal text}{fg=white,bg=black!90}
\setbeamercolor{structure}{fg=white}
\setbeamercolor{alerted text}{fg=red!85!black}
\setbeamercolor{item projected}{use=item,fg=black,bg=item.fg!35}
\setbeamercolor*{palette primary}{use=structure,fg=structure.fg}
\setbeamercolor*{palette secondary}{use=structure,fg=structure.fg!95!black}
\setbeamercolor*{palette tertiary}{use=structure,fg=structure.fg!90!black}
\setbeamercolor*{palette quaternary}{use=structure,fg=structure.fg!95!black,bg=black!80}
\fi
% Footer % Footer
\setbeamertemplate{frame footer}{ \setbeamertemplate{frame footer}{
\insertsection \hfill\hspace{-4em} \insertshorttitle \insertsection \hfill\hspace{-4em} \insertshorttitle