summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty')
-rw-r--r--macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty41
1 files changed, 26 insertions, 15 deletions
diff --git a/macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty b/macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty
index 0e1d2df1df..836d8b3aad 100644
--- a/macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty
+++ b/macros/latex/contrib/beamer/base/themes/theme/beamerthemeSingapore.sty
@@ -1,16 +1,16 @@
% Copyright 2007 by Till Tantau
+% Copyright 2023 by Joseph Wright, samcarter
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
-% See the file doc/licenses/LICENSE for more details.
+% See the file LICENSE.md for more details.
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
-
\mode<presentation>
\setbeamercolor{section in head/foot}{use=structure,bg=structure.fg!25!bg}
@@ -19,21 +19,32 @@
\setbeamertemplate{frametitle}[default][center]
-\AtBeginDocument{%
- {
- \usebeamercolor{section in head/foot}
- }
-
- \pgfdeclareverticalshading{beamer@headfade}{\paperwidth}
- {%
- color(0cm)=(bg);
- color(1.25cm)=(section in head/foot.bg)%
- }
-
- \setbeamercolor{section in head/foot}{bg=}
+\AtBeginDocument{%
+ \begingroup
+ \selectcolormodel{gray}
+ \pgfdeclareverticalshading{beamer@headfade}{\the\paperwidth}{%
+ color(0ex)=(pgftransparent!100);%
+ color(1.25cm)=(pgftransparent!0)
+ }
+ \pgfdeclarefading{beamer@headfademask}{\pgfuseshading{beamer@headfade}}
+ \endgroup
}
-\addtoheadtemplate{\pgfuseshading{beamer@headfade}\vskip-1.25cm}{}
+\addtoheadtemplate{%
+ \begingroup%
+ \begin{pgfpicture}
+ \begin{pgfscope}%
+ \usebeamercolor{section in head/foot}%
+ \pgfsetfillcolor{section in head/foot.bg}%
+ \pgfpathrectangle{\pgfpoint{-.5\paperwidth}{-0.625cm}}{\pgfpoint{\paperwidth}{1.25cm}}%
+ \pgfsetfading{beamer@headfademask}{}%
+ \pgfusepath{fill}%
+ \end{pgfscope}%
+ \end{pgfpicture}%
+ \endgroup%
+ \vskip-1.25cm%
+ \setbeamercolor{section in head/foot}{bg=}%
+}{}
\beamertemplatedotitem