Add dark theme from https://tex.stackexchange.com/a/57478
This commit is contained in:
parent
fba9087e12
commit
2db8e599a6
2 changed files with 18 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue