beamercolorthemeowl.sty (4936B)
1 %% 2 %% This is file `beamercolorthemeowl.sty', 3 %% generated with the docstrip utility. 4 %% 5 %% The original source files were: 6 %% 7 %% beamercolorthemeowl.dtx (with options: `package') 8 %% --------------------------------------------------------------------------- 9 %% Copyright 2016 Ross Churchley. Contributions to this package are welcome at 10 %% 11 %% https://github.com/rchurchley/beamercolortheme-owl 12 %% 13 %% This work may be distributed and/or modified under the conditions of 14 %% the LaTeX Project Public License, either version 1.3 of this license 15 %% or (at your option) any later version. The latest version of this 16 %% license is in: 17 %% 18 %% http://www.latex-project.org/lppl.txt 19 %% 20 %% and version 1.3 or later is part of all distributions of LaTeX version 21 %% 2005/12/01 or later. 22 %% --------------------------------------------------------------------------- 23 \NeedsTeXFormat{LaTeX2e}[2005/12/01] 24 \ProvidesPackage{beamercolorthemeowl} 25 [2016/03/15 v0.1.1 A visible colour theme for Beamer presentations] 26 \RequirePackage{etoolbox} 27 \newtoggle{snowy} 28 \newtoggle{cautious} 29 \@ifclassloaded{beamer}{ 30 \DeclareOptionBeamer{snowy}{\toggletrue{snowy}} 31 \DeclareOptionBeamer{cautious}{\toggletrue{cautious}} 32 \ProcessOptionsBeamer 33 }{} 34 \@ifclassloaded{beamer}{ 35 \iftoggle{snowy}{ 36 \setbeamercolor{normal text}{fg=black, bg=white} 37 }{ 38 \setbeamercolor{normal text}{fg=white, bg=black} 39 } 40 }{} 41 \RequirePackage{xcolor} 42 \definecolor{OwlRed}{RGB}{ 255, 92, 168} 43 \definecolor{OwlGreen}{RGB}{ 90, 168, 0} 44 \definecolor{OwlBlue}{RGB}{ 0, 152, 233} 45 \definecolor{OwlYellow}{RGB}{ 242, 147, 24} 46 \colorlet{OwlViolet}{OwlRed!50!OwlBlue} 47 \colorlet{OwlBrown}{OwlRed!50!OwlGreen} 48 \colorlet{OwlOrange}{OwlRed!50!OwlYellow} 49 \colorlet{OwlCyan}{OwlGreen!50!OwlBlue} 50 \iftoggle{cautious}{}{ 51 \colorlet{red}{OwlRed} 52 \colorlet{green}{OwlGreen} 53 \colorlet{blue}{OwlBlue} 54 \colorlet{yellow}{OwlYellow} 55 \colorlet{violet}{OwlViolet} 56 \colorlet{brown}{OwlBrown} 57 \colorlet{orange}{OwlOrange} 58 \colorlet{cyan}{OwlCyan} 59 } 60 \@ifclassloaded{beamer}{ 61 \setbeamercolor*{alerted text}{ 62 fg=OwlRed 63 } 64 \setbeamercolor*{example text}{ 65 fg=OwlGreen 66 } 67 \setbeamercolor*{title}{ 68 use=normal text, 69 fg=normal text.fg 70 } 71 \setbeamercolor*{title in sidebar}{ 72 use=normal text, 73 fg=normal text.fg 74 } 75 \setbeamercolor*{titlelike}{ 76 use=normal text, 77 parent=normal text.fg 78 } 79 \setbeamercolor*{author}{ 80 use=normal text, 81 parent=normal text.fg 82 } 83 \setbeamercolor*{date}{ 84 use=normal text, 85 parent=normal text.fg 86 } 87 \setbeamercolor*{institute}{ 88 use=normal text, 89 parent=normal text.fg 90 } 91 \setbeamercolor*{structure}{ 92 use=normal text, 93 fg=normal text.fg!50!normal text.bg 94 } 95 \setbeamercolor*{palette primary}{ 96 use=normal text, 97 fg=normal text.fg!90!normal text.bg, 98 bg=normal text.bg!90!normal text.fg 99 } 100 \setbeamercolor*{palette secondary}{ 101 use=normal text, 102 fg=alerted text.fg!75!normal text.bg, 103 bg=normal text.bg!90!normal text.fg 104 } 105 \setbeamercolor*{palette tertiary}{ 106 use=normal text, 107 fg=example text.fg!75!normal text.bg, 108 bg=normal text.bg!90!normal text.fg 109 } 110 \setbeamercolor*{palette quaternary}{ 111 use=normal text, 112 fg=normal text.fg!75!normal text.bg, 113 bg=normal text.bg!90!normal text.fg 114 } 115 \setbeamercolor*{sidebar}{ 116 use=normal text, 117 fg=normal text.fg!80!normal text.bg, 118 bg=normal text.bg!80!normal text.fg 119 } 120 \setbeamercolor*{palette sidebar primary}{ 121 use=palette primary, 122 parent=palette primary 123 } 124 \setbeamercolor*{palette sidebar secondary}{ 125 use=palette primary, 126 parent=palette primary 127 } 128 \setbeamercolor*{palette sidebar tertiary}{ 129 use=palette quaternary, 130 parent=palette quaternary 131 } 132 \setbeamercolor*{palette sidebar quaternary}{ 133 use=palette quaternary, 134 parent=palette quaternary 135 } 136 \setbeamercolor*{frametitle}{ 137 use=palette primary, 138 parent=palette primary 139 } 140 \setbeamercolor*{block title}{ 141 use=normal text, 142 fg=normal text.fg, 143 bg= 144 } 145 \setbeamercolor{block body}{ 146 bg= 147 } 148 \setbeamercolor*{block title alerted}{% 149 use={block title, alerted text}, 150 fg=alerted text.fg, 151 bg=block title.bg 152 } 153 \setbeamercolor*{block title example}{% 154 use={block title, example text}, 155 fg=example text.fg, 156 bg=block title.bg 157 } 158 \setbeamercolor*{block body alerted}{ 159 use=block body, 160 parent=block body 161 } 162 \setbeamercolor*{block body example}{ 163 use=block body, 164 parent=block body 165 } 166 \def\beamer@themerounded@shadow{false} 167 \setbeamertemplate{navigation symbols}{} 168 }{} 169 \endinput 170 %% 171 %% End of file `beamercolorthemeowl.sty'.