Commits

Nicolas Dudebout committed 1686da3

Enables customization of the note page look.

The colors that were used in the note page were half hard coded and half inherited from other values. This has the unintended consequence to give some conflicting values. For example, setting a normal text foreground to white meant that the note page foreground was white with no way of setting a note page background to anything but white. The only recourse was to change the note page foreground to display nicely on white.

Customization for the note page title, date, and background is added.

The mini slide also inherits the foreground and background color of normal text.

Comments (0)

Files changed (4)

base/beamerbasenotes.sty

 \newcommand{\insertslideintonotes}[1]{{%
   \begin{pgfpicture}{0cm}{0cm}{#1\paperwidth}{#1\paperheight}
     \begin{pgflowlevelscope}{\pgftransformscale{#1}}%
-      \color[gray]{0.8}
+      \color{normal text.bg}
       \pgfpathrectangle{\pgfpointorigin}{\pgfpoint{\paperwidth}{\paperheight}}
       \pgfusepath{fill}
-      \color{black}
+      \color{normal text.fg}
       {\pgftransformshift{\pgfpoint{\beamer@origlmargin}{\footheight}}\pgftext[left,bottom]{\copy\beamer@frameboxcopy}}
     \end{pgflowlevelscope}
   \end{pgfpicture}%

base/themes/color/beamercolorthemedefault.sty

 
 \setbeamercolor{qed symbol}{parent=structure}
 
+\setbeamercolor{note page}{bg=white!90!black, fg=black}
+\setbeamercolor{note title}{bg=white!80!black, fg=black}
+\setbeamercolor{note date}{parent=note title}
+
 \mode
 <all>

base/themes/font/beamerfontthemedefault.sty

 \setbeamerfont{quote}{parent=quotation}
 
 \setbeamerfont{note page}{size=\small}
+\setbeamerfont{note title}{parent=note page}
+\setbeamerfont{note date}{size=\footnotesize}
 
 \mode
 <all>

base/themes/outer/beamerouterthemedefault.sty

 {%
   {%
     \scriptsize
-    \insertvrule{.25\paperheight}{white!90!black}
-    \vskip-.25\paperheight
-    \nointerlineskip
+    \usebeamerfont{note title}\usebeamercolor[fg]{note title}%
+    \ifbeamercolorempty[bg]{note title}{}{%
+      \insertvrule{.25\paperheight}{note title.bg}%
+      \vskip-.25\paperheight%
+      \nointerlineskip%
+    }%
     \vbox{
       \hfill\insertslideintonotes{0.25}\hskip-\Gm@rmargin\hskip0pt%
       \vskip-0.25\paperheight%
       \begin{pgfpicture}{0cm}{0cm}{0cm}{0cm}
         \begin{pgflowlevelscope}{\pgftransformrotate{90}}
           {\pgftransformshift{\pgfpoint{-2cm}{0.2cm}}%
-          \pgftext[base,left]{\footnotesize\the\year-\ifnum\month<10\relax0\fi\the\month-\ifnum\day<10\relax0\fi\the\day}}
+          \pgftext[base,left]{\usebeamerfont{note date}\usebeamercolor[fg]{note date}\the\year-\ifnum\month<10\relax0\fi\the\month-\ifnum\day<10\relax0\fi\the\day}}
         \end{pgflowlevelscope}
       \end{pgfpicture}}
     \nointerlineskip
       }%
       \vfil}%
   }%
+  \ifbeamercolorempty[bg]{note page}{}{%
+    \nointerlineskip%
+    \insertvrule{.75\paperheight}{note page.bg}%
+    \vskip-.75\paperheight%
+  }%
   \vskip.25em
   \nointerlineskip
   \insertnote