%%
%% This is file `stb-beamer-b.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% stb-beamer.dtx  (with options: `beamer-b')
%% 
%% Copyright (C) 2023 Stellenbosch University
%% All rights reserved.
%% 
%% ----------------------------------------------------------------------
%%  Stellenbosch University beamer presentation styles
%% ----------------------------------------------------------------------
%% 
%% Author:     Danie Els
%% Maintained: Danie Els (dnjels@sun.ac.za)
%% 
%% This work may be distributed and modified, and must be credited
%% under the conditions of the latest version of the Creative Commons
%% License (CC BY 4.0). The latest version of this license is in:
%% 
%%    https://creativecommons.org/licenses/by/4.0/
%% 
%% This work consists of the files
%%   stb-beamer.ins
%%   stb-beamer.dtx
%% and the derived files
%%   stb-beamer-a.sty
%%   stb-beamer-b.sty
%% -------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{stb-beamer-b}
                [2023/08/10 v1.0 Stellenbosch Beamer (DNJ ELS)]
\definecolor{stbMaroon}{RGB}{97,  34, 59}
\definecolor{stbGold}  {RGB}{183,153, 98}
\definecolor{stbGreen} {RGB}{130,204,174}
\definecolor{stbOrange}{RGB}{220, 68,  5}
\definecolor{stbWine}  {RGB}{166, 10, 61}
\definecolor{stbSoil}  {RGB}{100, 51, 53}
\usetheme[secheader]{Madrid}

\definecolor{stbGray}  {RGB}{140,151,154}  % 0.54, 0.59, 0.6
\definecolor{stbBlue}  {RGB}{  0, 99,150}

\setbeamercolor{titlelike}{bg=stbMaroon,fg=stbGold}
\setbeamercolor{palette primary}{bg=stbMaroon,fg=stbGold}
\setbeamercolor{palette secondary}{bg=stbMaroon,fg=stbGold}
\setbeamercolor{palette tertiary}{bg=stbMaroon,fg=stbGold}
\setbeamercolor{item projected}{fg=stbMaroon, bg=stbMaroon}

\setbeamercolor{block title}{bg=stbMaroon,fg=stbGold}
\setbeamercolor{block body}{bg=stbGray!35,fg=black}

\setbeamercolor{block title alerted}{fg=white, bg=stbOrange}
\setbeamercolor{block body alerted}{bg=stbOrange!15,fg=stbOrange}
\setbeamercolor{alerted text}{fg=stbOrange}

\setbeamercolor{block title example}{fg=white, bg=stbGreen!70!black}
\setbeamercolor{block body example}{bg=stbGreen!25}

\setbeamerfont{block body}{size=\small}
\setbeamerfont{block body example}{size=\small}
\setbeamerfont{block body alerted}{size=\small}

\setbeamerfont{frametitle}{size=\normalsize}
\setbeamerfont{block title}{size=\normalsize}
\setbeamerfont{block title example}{size=\normalsize}

\setbeamertemplate{title}{%
    \begin{beamercolorbox}[sep=2pt,left]{title}
    \raisebox{-0.575\height}{\includegraphics[width=3cm]{stb-logo-horiz-w}}
    \hfill
    \parbox[t]{\dimexpr\hsize-3cm-4pt-8pt}{%
            \usebeamerfont{title}\inserttitle%
            \ifx\insertsubtitle\@empty%
            \else%
              \par\vskip0.25em%
              {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}%
            \fi}%
    \end{beamercolorbox}%
}
\endinput
%%
%% End of file `stb-beamer-b.sty'.
