Newer
Older
Presentations / Lb_SL / Preselection / beamercolorthemeFlip.sty
@mchrzasz mchrzasz on 22 Oct 2015 6 KB added preselection slides
  1. % Color style file for the BEAMER FLIP THEME
  2. % Copyright 2012 by Flip Tanedo
  3. % This file may be distributed and/or modified
  4. % 1. under the LaTeX Project Public License and/or
  5. % 2. under the GNU Public License.
  6.  
  7.  
  8.  
  9. \mode<presentation>
  10. \newif\ifbeamer@Flip@dark
  11. \beamer@Flip@darkfalse
  12. \DeclareOptionBeamer{dark}{\beamer@Flip@darktrue}
  13. \ProcessOptionsBeamer
  14.  
  15.  
  16. % These are a few colors that I like.
  17.  
  18. \definecolor{crimsonred}{RGB}{153,0,0} % Neurtal red, good for dark or light bg
  19. \definecolor{darkcharcoal}{RGB}{25,25,25} % Darker gray
  20. \definecolor{charcoal}{RGB}{51,51,51} % Darker gray
  21. \definecolor{ash}{RGB}{100,100,100} % medium gray
  22. \definecolor{paleblue}{RGB}{0,102,102} % More of an `ocean' color
  23. \definecolor{turtlegreen}{RGB}{51,153,0} % A more neutral green
  24. \definecolor{paleale}{RGB}{204,204,102} % Only for dark BG
  25. \definecolor{lager}{RGB}{140,110,10} % Use instead of pale ale for white BG
  26. \definecolor{regal}{RGB}{90,0,120} % A more neutral purple
  27. \definecolor{jeans}{RGB}{20,30,150} % A more neutral blue
  28.  
  29.  
  30. % Define some "invariant colors" so that a color that doen't work with a
  31. % light/dark background will automatically be substituted with one that does.
  32. % These will be rewritten in beamercolorthemeFlipDark
  33.  
  34. \ifbeamer@Flip@dark
  35. \definecolor{FlipSand}{RGB}{204,204,102} % paleale, Only for dark BG
  36. \definecolor{FlipGreen}{RGB}{0,255,0} % Neon-like green, only for dark BG
  37. \else
  38. \definecolor{FlipSand}{RGB}{140,110,10} % lager, Only for light BG
  39. \definecolor{FlipGreen}{RGB}{51,153,0} % turtlegreen, works for both
  40. \fi
  41.  
  42. %% Future revision: It would be nice to define these in terms of the palette.
  43.  
  44.  
  45. \ifbeamer@Flip@dark
  46. \setbeamercolor{normal text}{fg=white, bg=black}
  47. \setbeamercolor{structure}{fg=gray, bg=black} % fg controls bullets
  48. \setbeamercolor*{footerlike}{fg=white,bg=black} % Controls the footerline
  49. \else
  50. % Default to black on white
  51. \setbeamercolor*{footerlike}{fg=white,bg=charcoal} % for charcoal footer
  52. \setbeamercolor{structure}{fg=charcoal, bg=white} % fg controls bullets
  53. % \setbeamercolor{normal text}{fg=white, bg=black}
  54. \fi
  55.  
  56.  
  57.  
  58.  
  59.  
  60. % These defined colors can be used in \textcolor{colorname}{text in that color}.
  61.  
  62. % Colors for Keynote background: DARK
  63. \definecolor{keynotebottom}{rgb}{0.32,0.3,0.38}
  64. \definecolor{keynotemiddle}{rgb}{0.08,0.08,0.16}
  65. \definecolor{keynotetop}{rgb}{0,0,0}
  66. %%% Example of usage:
  67. %% \setbeamertemplate{background canvas}[vertical shading]
  68. %% [bottom=keynotebottom, middle=keynotemiddle, top=keynotetop]
  69.  
  70.  
  71.  
  72.  
  73. % ALERT AND COMMENT COLORS (just copies of the above colors)
  74. % (I don't know how ot do this more elegantly)
  75. \ifbeamer@Flip@dark
  76. \definecolor{ALERT}{RGB}{153,0,0} % crimsonred
  77. \definecolor{Alert}{RGB}{51,153,0} % turtlegreen
  78. \definecolor{alert}{RGB}{204,204,102} % paleale
  79. \definecolor{charcoal}{RGB}{51,51,51} % charcoal
  80. \definecolor{comment}{RGB}{80,80,80} % light charcoal
  81. \definecolor{Comment}{RGB}{100,100,100} % ash
  82. \definecolor{COMMENT}{RGB}{80,20,120} % regal
  83. \else
  84. % \definecolor{ALERT}{RGB}{153,0,0} % crimsonred
  85. \definecolor{ALERT}{RGB}{28,134,238} % DodgerBlue2
  86. % \definecolor{Alert}{RGB}{51,153,0} % turtlegreen
  87. \definecolor{Alert}{RGB}{255,127,36} % chocolate1
  88. % \definecolor{alert}{RGB}{140,110,10} % lager
  89. \definecolor{alert}{RGB}{0,205,102} % SpringGreen3
  90. \definecolor{charcoal}{RGB}{80,80,80} % light charcoal
  91. \definecolor{comment}{RGB}{51,51,51} % charcoal
  92. \definecolor{Comment}{RGB}{100,100,100} % ash
  93. \definecolor{COMMENT}{RGB}{80,20,120} % regal
  94. \fi
  95.  
  96.  
  97. % \definecolor{crimsonred}{RGB}{153,0,0} % Neurtal red, good for dark or light bg
  98. % \definecolor{charcoal}{RGB}{51,51,51} % Darker gray
  99. % \definecolor{ash}{RGB}{100,100,100} % medium gray
  100. % \definecolor{paleblue}{RGB}{0,102,102} % More of an `ocean' color
  101. % \definecolor{turtlegreen}{RGB}{51,153,0} % A more neutral green
  102. % \definecolor{paleale}{RGB}{204,204,102} % Only for dark BG
  103. % \definecolor{lager}{RGB}{140,110,10} % Use instead of pale ale for white BG
  104. % \definecolor{regal}{RGB}{90,0,120} % A more neutral purple
  105. % \definecolor{jeans}{RGB}{20,30,150} % A more neutral blue
  106.  
  107.  
  108. % A few useful colors
  109. \setbeamercolor{alerted text}{fg=alert}
  110.  
  111. %% I would like ot use these colors, but there seems to be a bug in Beamer
  112. %% where the footnote color infects the normal text color
  113. %% See: http://tex.stackexchange.com/questions/8264/beamer-changing-the-footnote-color-also-changes-the-normal-text-color/8268#8268
  114.  
  115. % \setbeamercolor{footnote}{parent=normal text, fg=FlipSand}
  116. % \setbeamercolor{footnote mark}{parent=normal text, fg=FlipSand}
  117.  
  118. % Blocks
  119. \setbeamercolor{block title}{fg=gray!30!white,bg=charcoal}
  120. \setbeamercolor{block body}{parent=normal text,bg=gray, fg=white}
  121.  
  122. \setbeamercolor{block title example}{fg=turtlegreen!30!white,bg=turtlegreen!40!black}
  123. \setbeamercolor{block body example}{parent=normal text,bg=turtlegreen, fg=white}
  124. %
  125. \setbeamercolor{block title alerted}{fg=crimsonred!30!white,bg=crimsonred!40!black}
  126. \setbeamercolor{block body alerted}{parent=normal text,bg=crimsonred, fg=white}
  127.  
  128.  
  129.  
  130. % These "setbeamercolor" commands are more standardized.
  131.  
  132.  
  133. %% From the Beamer User Guide:
  134. % Outer themes base the color of navigational elements and, possibly, also of other elements, on the
  135. % four palette colors. The “primary” palette should be used for the most important navigational elements,
  136. % which are usually the ones that change most often and hence require the most attention by the audience.
  137. % The “secondary” and “tertiary” are less important, the “quaternary” one is least important.
  138. % By default, the palette colors do not have a background and the foreground ranges from structure.fg to black.
  139. % For the sidebar, there is an extra set of palette colors, see palette sidebar primary.
  140.  
  141. \setbeamercolor*{palette primary}{fg=crimsonred,bg=charcoal}
  142. \setbeamercolor*{palette secondary}{fg=paleale,bg=lager}
  143. \setbeamercolor*{palette tertiary}{fg=turtlegreen,bg=jeans}
  144. \setbeamercolor*{palette quaternary}{fg=paleblue,bg=regal}
  145.  
  146. % \setbeamercolor*{palette primary}{fg=crimsonred,bg=white}
  147. % \setbeamercolor*{palette secondary}{fg=charcoal,bg=white}
  148. % \setbeamercolor*{palette tertiary}{fg=paleblue,bg=white}
  149. % \setbeamercolor*{palette quaternary}{fg=turtlegreen,bg=white}
  150.  
  151.  
  152.  
  153. %% These are some structures that I define for use in the outer theme.
  154.  
  155. \setbeamercolor*{crimsontown}{fg=paleblue,bg=crimsonred}
  156. \setbeamercolor*{bluetown}{fg=white,bg=DodgerBlue2}
  157. %\setbeamercolor*{titlelike}{fg=crimsonred}
  158. \setbeamercolor*{titlelike}{fg=DodgerBlue2}
  159. \setbeamercolor*{topbarlike}{fg=white, bg=charcoal}
  160.  
  161.  
  162.  
  163.  
  164.  
  165. %% Some old definitions that I might want to get back to
  166. %
  167. % \setbeamercolor*{frametitle}{bg=white,fg=charcoal}
  168. % \setbeamercolor*{part title}{bg=white,fg=charcoal}
  169. % \setbeamercolor*{item}{fg=charcoal, bg=white}
  170. %
  171. % \setbeamercolor*{separation line}{}
  172. % \setbeamercolor*{fine separation line}{}
  173.  
  174.  
  175.  
  176.  
  177.  
  178. \mode
  179. <all>