suggestion for modification: section in head/foot shaded.

View: New views
1 Messages — Rating Filter:   Alert me  

suggestion for modification: section in head/foot shaded.

by Matthias Geier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list.

I'm working on a beamer theme with a headline based on the 'split'
theme which uses the commands \insertsectionnavigationhorizontal and
\insertsubsectionnavigationhorizontal.

I wanted to change the color of the shaded (sub)sections and found out
that there is a beamer template called 'section in head/foot shaded',
but when I defined a color with the same name, nothing happened.

I browsed a little through the code and was wondering why in
base/beamerbasenavigation.sty in line 531 and 533 the command
\usebeamertemplate{} was used instead of the starred variant
\usebeamertemplate*{}.
With this little change I would be able to use the beamer color with
the same name.

But there would be another little change necessary:
In themes/outer/beamerouterthemedefault.sty, around line 71, the definition:

\defbeamertemplate*{section in head/foot shaded}{default}[1][50]
{\color{fg!#1!bg}\usebeamertemplate{section in head/foot}}

would need to be changed to something like:

\defbeamertemplate*{section in head/foot shaded}{default}
{\usebeamertemplate{section in head/foot}}

Maybe, also some kind of alias-magic would do the trick?

Then, to restore the original default setting of 50% shading the
following could be added to themes/color/beamercolorthemedefault.sty:

\setbeamercolor{section in head/foot shaded}{parent=section in
head/foot,fg=parent.fg!50!parent.bg}

However, this would break all styles which use something like:

\usebeamertemplate{section in head/foot shaded}[default][75]
(I don't know if the optional argument is really used like this ...)

Does anyone actually use this?
I suspect that nobody does.

Does anything speak against making the suggested changes (except
breaking backwards compatibility in maybe extremely rare if even
existing cases)?

Could this be included in the beamer source?
In my opinion this would be a more consistent and a more 'beamer-like'
behaviour.

If not, there is a really easy work-around, I'll just have to
overwrite the template in my style file:

\defbeamertemplate*{section in head/foot shaded}{my theme}
{\usebeamercolor{section in head/foot
shaded}\usebeamertemplate{section in head/foot}}

Then I can easily set any desired color, e.g.:

\setbeamercolor{section in head/foot shaded}{fg=red}

Any thoughts appreciated.

cheers,
Matthias

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users