Nicolas Dudebout avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.