diff options
author | Karl Berry <karl@freefriends.org> | 2020-08-25 20:51:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-08-25 20:51:26 +0000 |
commit | f217ec8d36763f661eea4259a721a51aa71c5f28 (patch) | |
tree | 25e4309b37c6cbfa66e92c0102b2bf114544bbc0 /Master/texmf-dist/tex/latex | |
parent | be11f74324d6c2fa6dd44a0fc310796032ac18c7 (diff) |
beamerthemenord (25aug20)
git-svn-id: svn://tug.org/texlive/trunk@56180 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty | 119 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty | 9 |
2 files changed, 99 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty b/Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty index 3faf457f729..8cdaed54e9b 100644 --- a/Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty +++ b/Master/texmf-dist/tex/latex/beamerthemenord/beamercolorthemeNord.sty @@ -17,8 +17,9 @@ \definecolor{NordMediumBlack}{HTML}{434C5e} % nord2 \definecolor{NordBrightBlack}{HTML}{4C566A} % nord3 % Snow Storm -\definecolor{NordWhite}{HTML}{E5E9F0} % nord5 -\definecolor{NordBrightWhite}{HTML}{ECEFF4} % nord6 +\definecolor{NordWhite}{HTML}{D8DEE9} % nord4 +\definecolor{NordBrighterWhite}{HTML}{E5E9F0} % nord5 +\definecolor{NordBrightestWhite}{HTML}{ECEFF4} % nord6 % Frost \definecolor{NordCyan}{HTML}{8FBCBB} % nord7 \definecolor{NordBrightCyan}{HTML}{88C0D0} % nord8 @@ -31,31 +32,95 @@ \definecolor{NordGreen}{HTML}{A3BE8C} % nord14 \definecolor{NordMagenta}{HTML}{B48EAD} % nord15 -\setbeamercolor*{background canvas}{bg=NordBlack} -\setbeamercolor*{normal text}{fg=NordWhite} -\setbeamercolor*{alerted text}{fg=NordRed} -\setbeamercolor*{example text}{fg=NordBrightCyan} -\setbeamercolor*{structure}{fg=NordCyan} - -\setbeamercolor*{title}{fg=NordGreen} -\setbeamercolor*{subtitle}{fg=NordBlue} -\setbeamercolor*{frametitle}{fg=NordGreen} -\setbeamercolor*{framesubtitle}{fg=NordBlue} -\setbeamercolor*{section in toc}{fg=NordGreen} -\setbeamercolor*{subsection in toc}{fg=NordBlue} -\setbeamercolor*{subsection in toc shaded}{fg=NordCyan!20!NordBrightBlack} - -\setbeamercolor*{itemize item}{fg=NordGreen} -\setbeamercolor*{enumerate item}{fg=NordGreen} - -\setbeamercolor*{section in head/foot}{bg=NordBlack, fg=NordCyan} - -\setbeamercolor{block title}{bg=NordBlack!80,fg=NordGreen} -\setbeamercolor{block title example}{bg=NordBlack!80,parent={example text}} -\setbeamercolor{block title alerted}{bg=NordBlack!80,parent={alerted text}} -\setbeamercolor{block body}{bg=NordGreen!50!NordBlack,fg=NordCyan} -\setbeamercolor{block body example}{bg=NordBrightCyan!50!NordBlack,fg=NordWhite} -\setbeamercolor{block body alerted}{bg=NordRed!50!NordBlack,fg=NordWhite} + +%%%%% create alias for colors according to usage +\DeclareOptionBeamer{style}{\def\beamer@nordtheme@style{#1}} +\ExecuteOptionsBeamer{style=dark} % `dark` will be default if nothing is given +\ProcessOptionsBeamer + +\def\beamer@nordtheme@styledark{dark}% +\def\beamer@nordtheme@stylelight{light}% + + +\colorlet{ColorAlertedText}{NordRed} +\colorlet{ColorSubtitle}{NordBlue} +\colorlet{ColorSubsectionInToc}{ColorSubtitle} + +\ifx\beamer@nordtheme@style\beamer@nordtheme@styledark% + \colorlet{ColorBackground}{NordBlack} + \colorlet{ColorText}{NordWhite} + \colorlet{ColorExampleText}{NordBrightCyan} + \colorlet{ColorStructure}{NordCyan} + \colorlet{ColorTitle}{NordGreen} + \colorlet{ColorSubsectionInTocShaded}{NordCyan!20!NordBrightBlack} + \colorlet{ColorItemizeItem}{NordGreen} + \colorlet{ColorBlockTitleBg}{NordBlack!80} + \colorlet{ColorExampleBlockTitleBg}{ColorBlockTitleBg} + \colorlet{ColorAlertedBlockTitleBg}{ColorBlockTitleBg} + \colorlet{ColorBlockBodyBg}{NordGreen!50!NordBlack} + \colorlet{ColorExampleBlockBodyBg}{NordBrightCyan!50!NordBlack} + \colorlet{ColorAlertedBlockBodyBg}{NordRed!50!NordBlack} + \colorlet{ColorBlockBodyFg}{NordCyan} + \colorlet{ColorExampleBlockBodyFg}{NordWhite} + \colorlet{ColorAlertedBlockBodyFg}{NordWhite} +\else% + \ifx\beamer@nordtheme@style\beamer@nordtheme@stylelight% + \colorlet{ColorBackground}{NordBrightestWhite} + \colorlet{ColorText}{NordBrightBlack} + \colorlet{ColorExampleText}{NordCyan} + \colorlet{ColorStructure}{NordBrightCyan} + \colorlet{ColorTitle}{NordBrightBlue} + \colorlet{ColorSubtitle}{NordBlue} + \colorlet{ColorSubsectionInTocShaded}{ColorSubsectionInToc!50!ColorBackground} + \colorlet{ColorItemizeItem}{ColorStructure} + \colorlet{ColorBlockTitleBg}{NordGreen!50} + \colorlet{ColorExampleBlockTitleBg}{ColorExampleText!50} + \colorlet{ColorAlertedBlockTitleBg}{ColorAlertedText!50} + \colorlet{ColorBlockBodyBg}{NordGreen!20} + \colorlet{ColorExampleBlockBodyBg}{ColorExampleText!20} + \colorlet{ColorAlertedBlockBodyBg}{ColorAlertedText!20} + \colorlet{ColorBlockBodyFg}{ColorText} + \colorlet{ColorExampleBlockBodyFg}{ColorText} + \colorlet{ColorAlertedBlockBodyFg}{ColorText} + \else% + \PackageError{beamercolorthemeNord}{Unknow style option `\beamer@nordtheme@style`}{extra help} + \fi% +\fi% + + +\colorlet{ColorNormalText}{ColorText} +\colorlet{ColorFrameTitle}{ColorTitle} +\colorlet{ColorFrameSubtitle}{ColorSubtitle} +\colorlet{ColorSectionInToc}{ColorTitle} +\colorlet{ColorEnumerateColor}{ColorItemizeItem} +\colorlet{ColorSectionInHeadFoot}{ColorStructure} + +%%%%% set beamer color +\setbeamercolor*{background canvas}{bg=ColorBackground} +\setbeamercolor*{normal text}{fg=ColorNormalText} +\setbeamercolor*{alerted text}{fg=ColorAlertedText} +\setbeamercolor*{example text}{fg=ColorExampleText} +\setbeamercolor*{structure}{fg=ColorStructure} + +\setbeamercolor*{title}{fg=ColorTitle} +\setbeamercolor*{subtitle}{fg=ColorSubtitle} +\setbeamercolor*{frametitle}{fg=ColorFrameTitle} +\setbeamercolor*{framesubtitle}{fg=ColorFrameSubtitle} +\setbeamercolor*{section in toc}{fg=ColorSectionInToc} +\setbeamercolor*{subsection in toc}{fg=ColorSubsectionInToc} +\setbeamercolor*{subsection in toc shaded}{fg=ColorSubsectionInTocShaded} + +\setbeamercolor*{itemize item}{fg=ColorItemizeItem} +\setbeamercolor*{enumerate item}{fg=ColorEnumerateColor} + +\setbeamercolor*{section in head/foot}{bg=ColorBackground, fg=ColorSectionInHeadFoot} + +\setbeamercolor{block title}{bg=ColorBlockTitleBg,fg=NordGreen} +\setbeamercolor{block title example}{bg=ColorExampleBlockTitleBg,parent={example text}} +\setbeamercolor{block title alerted}{bg=ColorAlertedBlockTitleBg,parent={alerted text}} +\setbeamercolor{block body}{bg=ColorBlockBodyBg,fg=ColorBlockBodyFg} +\setbeamercolor{block body example}{bg=ColorExampleBlockBodyBg,fg=ColorExampleBlockBodyFg} +\setbeamercolor{block body alerted}{bg=ColorAlertedBlockBodyBg,fg=ColorAlertedBlockBodyFg} \setbeamercolor{caption}{fg=NordBrightBlue} diff --git a/Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty b/Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty index 40067d2fb8b..55633e34805 100644 --- a/Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty +++ b/Master/texmf-dist/tex/latex/beamerthemenord/beamerthemeNord.sty @@ -6,10 +6,15 @@ % The latest version of this license is in % http://www.latex-project.org/lppl.txt -\ProvidesPackage{beamerthemeNord}[2020/07/03 v0.1.0 A simple beamer theme using Nord color scheme] +\ProvidesPackage{beamerthemeNord}[2020/08/24 v0.2.0 A simple beamer theme using Nord color scheme] \mode<presentation> +\DeclareOptionBeamer{style}{ + \PassOptionsToPackage{style=#1}{beamercolorthemeNord} +} +\ProcessOptionsBeamer + \RequirePackage{ifthen} \usecolortheme{Nord} @@ -17,7 +22,7 @@ \setbeamertemplate{navigation symbols}{} -\setbeamersize{text margin left=6mm,text margin right=6mm} +\setbeamersize{text margin left=10mm,text margin right=10mm} \setbeamertemplate{caption}{\insertcaption} |