1. Vedran Miletić
  2. beamer
  3. Issues
Issue #42 open

Trying to add shading to frametitle.

created an issue

Hi all,

This is more a general question for the beamer community than a bug (I think).

I'm trying to add the color fading that used in the Singapore theme for the head to a different section of a frame. I don't use a head, but I'd like to use that effect for the frametitle for my own .sty.

The easiest way to show you what I'm trying to do is for you to add these lines to the end of the Copenhagen theme. The end of beamerthemeCopenhagen.sty then looks like this for me.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Added this %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \AtBeginDocument{% { \usebeamercolor{frametitle} } \pgfdeclareverticalshading{beamer@frametitlefade}{\paperwidth} {% color(0.0cm)=(bg); color(1.00cm)=(frametitle.bg)% } \setbeamercolor{frametitle}{bg=} } \addtobeamertemplate{frametitle}{\pgfuseshading{beamer@frametitlefade}\vskip-1.15cm}{} \beamertemplatedotitem

\mode <all> }}}

I admit I kind of hacked it together after reading the user guide and trying to understand what was happening in the Singapore theme. My Latex compiles and I get the fading effect but there's a blank white space on the left of the frame title about an inch or so wide. I've been trying to find out where that's coming from, but no luck.

The fading looks pretty good if I could just get this last part swinging! Any help is greatly appreciated.

Beamer is awesome. :)


Comments (3)

  1. Log in to comment