From c1ca7de71651c30b845692eff0644847698ddd35 Mon Sep 17 00:00:00 2001 From: "Achim D. Brucker" Date: Mon, 30 Jan 2017 00:46:25 +0000 Subject: [PATCH] Implemented inverse option. --- .../beamercolorthemelh-core-inverse.sty | 29 +++++++++++++++++++ lh-presentation/beamercolorthemelh-core.sty | 4 +-- .../beamerthemelh-presentation.sty | 8 +++++ lh-presentation/lh-presentation.cls | 1 + 4 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 lh-presentation/beamercolorthemelh-core-inverse.sty diff --git a/lh-presentation/beamercolorthemelh-core-inverse.sty b/lh-presentation/beamercolorthemelh-core-inverse.sty new file mode 100644 index 0000000..158a0f8 --- /dev/null +++ b/lh-presentation/beamercolorthemelh-core-inverse.sty @@ -0,0 +1,29 @@ +%% Copyright (C) 2016 Achim D. Brucker, https://www.brucker.ch +%% +%% License: +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% OR +%% The 2-clause BSD-style license. +%% +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{beamercolorthemelh-core} + [2016/11/01 v0.0 LaTeX presentation class implementing the cooperate design of LogicalHacking.com] + +\mode + \setbeamercolor{background canvas}{bg=black,fg=white} + \setbeamercolor{footer}{bg=lhDarkGray, fg=lhLightGray} + \setbeamercolor{normal text}{fg=white} + \setbeamercolor*{palette primary}{fg=white, bg=lhDarkGray} + \setbeamercolor*{palette secondary}{bg=white,fg=lhDarkGray} + \setbeamercolor*{palette tertiary}{bg=white,fg=lhLightGray} + \setbeamercolor*{palette quaternary}{bg=white,fg=black} + + \setbeamercolor{subitem}{parent=item, fg=lhDarkGray} + \setbeamercolor{subsubitem}{parent=subitem,fg=lhLightGray} + +\mode + + diff --git a/lh-presentation/beamercolorthemelh-core.sty b/lh-presentation/beamercolorthemelh-core.sty index 41f65c5..a67f0dc 100644 --- a/lh-presentation/beamercolorthemelh-core.sty +++ b/lh-presentation/beamercolorthemelh-core.sty @@ -49,8 +49,8 @@ \setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!10!bg} \setbeamercolor{item}{parent=local structure,fg=lhOrange,bg=lhDarkGray} - \setbeamercolor{subitem}{parent=item, fg=lhLightGray} - \setbeamercolor{subsubitem}{parent=subitem} + \setbeamercolor{subitem}{parent=item, fg=lhDarkGray} + \setbeamercolor{subsubitem}{parent=subitem,fg=lhLightGray} \setbeamercolor{kicker}{use=structure,bg=lhLightGray} diff --git a/lh-presentation/beamerthemelh-presentation.sty b/lh-presentation/beamerthemelh-presentation.sty index ff31c2b..9cbf15e 100644 --- a/lh-presentation/beamerthemelh-presentation.sty +++ b/lh-presentation/beamerthemelh-presentation.sty @@ -25,6 +25,10 @@ \setboolean{lh@title@light}{false} \DeclareOptionX{titlelight}{\setboolean{lh@title@light}{true}} % +\newboolean{lh@inverse} +\setboolean{lh@inverse}{false} +\DeclareOptionX{inverse}{\setboolean{lh@inverse}{true}} +% \def\lh@classification@sel@default{5} \def\lh@classification@sel{5} \newcommand{\lh@CCBYNCND}{\href{https://creativecommons.org/licenses/by-nc-nd/4.0/}{CC BY-NC-ND 4.0}} @@ -194,6 +198,10 @@ \usecolortheme{lh-core} +\ifthenelse{\boolean{lh@inverse}}{% + \usecolortheme{lh-core-inverse} +}{% +} \ifthenelse{\boolean{lh@title@light}}{% \usecolortheme{lh-titlelight} }{% diff --git a/lh-presentation/lh-presentation.cls b/lh-presentation/lh-presentation.cls index c2528da..e0941e5 100644 --- a/lh-presentation/lh-presentation.cls +++ b/lh-presentation/lh-presentation.cls @@ -15,6 +15,7 @@ \DeclareOptionBeamer{classification}{\PassOptionsToPackage{classification=#1}{beamerthemelh-presentation}} \DeclareOptionBeamer{titlelight}{\PassOptionsToPackage{titlelight}{beamerthemelh-presentation}} +\DeclareOptionBeamer{inverse}{\PassOptionsToPackage{inverse}{beamerthemelh-presentation}} \ProcessOptionsBeamer\relax