Browse Source

Better fancy support

- fancy and nonavigation are now simple options instead of key-value
pair
 - Section frame are based on tikz now
 - Some dark theme color rework
master
parent
commit
121112fd08
7 changed files with 250 additions and 39630 deletions
  1. +64
    -24
      beamerThemeKenotom.sty
  2. +2
    -2
      kenotom_template.tex
  3. BIN
      media/City.png
  4. BIN
      media/SectionBackground.png
  5. +70
    -0
      media/svg/City.svg
  6. +4
    -39604
      media/svg/SectionBackground.svg
  7. +110
    -0
      media/svg/SectionBackground_old.svg

+ 64
- 24
beamerThemeKenotom.sty View File

@@ -24,24 +24,23 @@
% key-value: theme: {classic(default), light, dark}
\DeclareOptionBeamer{theme}{\def\beamer@kenotom@theme{#1}}
% key-value: backround: {none(default), ribon}
\DeclareOptionBeamer{backround}{\def\beamer@kenotom@backround{#1}}
% key-value: background: {none(default), ribon}
\DeclareOptionBeamer{background}{\def\beamer@kenotom@background{#1}}
% key-value: title: {normal(default), small, large}
\DeclareOptionBeamer{title}{\def\beamer@kenotom@title{#1}}
% key-value: navigation: {enable(default), disable}
\DeclareOptionBeamer{navigation}{\def\beamer@kenotom@navigation{#1}}
% Option: navigation
\DeclareOptionBeamer{nonavigation}{\def\beamer@kenotom@nonavigation{}}
% Option: fancy
\DeclareOptionBeamer{fancy}{\def\beamer@kenotom@fancy{}}
% key-value: fancy: {disable(default), enable}
\DeclareOptionBeamer{fancy}{\def\beamer@kenotom@fancy{#1}}
% Set default options
\ExecuteOptionsBeamer{theme=classic}
\ExecuteOptionsBeamer{backround=none}
\ExecuteOptionsBeamer{background=none}
\ExecuteOptionsBeamer{title=normal}
\ExecuteOptionsBeamer{navigation=enable}
\ExecuteOptionsBeamer{fancy=disable}
\ProcessOptionsBeamer
@@ -93,7 +92,7 @@
}
% [1]: Banner image
\newcommand{\SetBackroundPlain}[1]{%
\newcommand{\SetBackgroundPlain}[1]{%
\setbeamertemplate{background}{%
\begin{tikzpicture}[overlay,remember picture]
% Banner
@@ -141,7 +140,7 @@
%
% [1]: Color
% [2]: Text
%\newcommand{\InsertBackroundToText}[2]{%
%\newcommand{\InsertBackgroundToText}[2]{%
%% \colorbox{#1}{%
%% \parbox{\dimexpr\textwidth-2\fboxsep\relax}{#2}
% \colorbox{#1}{#2}
@@ -158,16 +157,21 @@
\colorlet{TitleColor}{KenotomGreyLight}
\colorlet{TitleColorFancy}{KenotomWhite}
\colorlet{TitleColorAux}{KenotomGreenLight}
\colorlet{FrameTitleColor}{KenotomGrey}
\colorlet{BlockTitleColor}{KenotomGrey}
\colorlet{SectionTitleColor}{KenotomGreenLight}
\colorlet{FrameTitleColor}{KenotomGreenLight}
\colorlet{BlockTitleColor}{KenotomGreenLight}
\colorlet{TextColor}{KenotomGreenGreyLight}
\colorlet{StructureColor}{KenotomGreenLight}
\colorlet{SectionFrameOpacityColor}{KenotomGreenGreyDark}
\colorlet{GraphicBoxColor}{KenotomGreyDark1}
\colorlet{GraphicLineColor}{KenotomGreenLight}
\colorlet{NavigationColor}{KenotomGreen}
\colorlet{NavigationColorFancy}{KenotomWhite}
\colorlet{NavigationColorFancy}{KenotomGreen}
\colorlet{NavigationArrowsColor}{KenotomGreyLight}
\colorlet{NavigationArrowsColorFancy}{KenotomWhite}
\colorlet{NavigationArrowsColorFancy}{KenotomGreyLight}
\colorlet{TableCaptionColor}{KenotomGreyDark1}
\colorlet{TableCaptionTextColor}{KenotomWhite}
@@ -178,12 +182,17 @@
\colorlet{TitleColor}{KenotomGrey}
\colorlet{TitleColorFancy}{KenotomWhite}
\colorlet{TitleColorAux}{KenotomGreen}
\colorlet{SectionTitleColor}{KenotomWhite!90!KenotomGreenLight}
\colorlet{FrameTitleColor}{KenotomGrey}
\colorlet{BlockTitleColor}{KenotomGrey}
\colorlet{TextColor}{KenotomGrey}
\colorlet{StructureColor}{KenotomGreen}
\colorlet{SectionFrameOpacityColor}{KenotomGreenLight}
\colorlet{GraphicBoxColor}{KenotomGreyDark1}
\colorlet{GraphicLineColor}{KenotomGreenLight}
\colorlet{NavigationColor}{KenotomGreen}
\colorlet{NavigationColorFancy}{KenotomWhite}
\colorlet{NavigationArrowsColor}{KenotomGrey}
@@ -198,12 +207,22 @@
\colorlet{TitleColor}{KenotomGreyDark1}
\colorlet{TitleColorFancy}{KenotomWhite}
\colorlet{TitleColorAux}{KenotomGreen}
\colorlet{SectionTitleColor}{KenotomWhite!90!KenotomGreenLight}
\colorlet{TitleColorFancy}{KenotomWhite}
\colorlet{FrameTitleColor}{KenotomGreyDark2}
\colorlet{BlockTitleColor}{KenotomGreyDark2}
\colorlet{TextColor}{KenotomGreenGrey}
\colorlet{TextColor}{KenotomGreyDark1}
\colorlet{StructureColor}{KenotomGreen}
\colorlet{SectionFrameOpacityColor}{KenotomGreenLight}
\colorlet{GraphicBoxColor}{KenotomGreyDark1}
\colorlet{GraphicLineColor}{KenotomGreenLight}
\colorlet{SectionFrameOpacityColor}{KenotomGreen}
\colorlet{GraphicBoxColor}{KenotomGreyDark1}
\colorlet{GraphicLineColor}{KenotomGreenLight}
\colorlet{NavigationColor}{KenotomGreen}
\colorlet{NavigationColorFancy}{KenotomWhite}
\colorlet{NavigationArrowsColor}{KenotomGreyDark1}
@@ -247,8 +266,8 @@
\addtobeamertemplate{footnote}{}{\vspace{2ex}}
% Default backround (We overwrite it temporary inside kenotom frame environments)
\ifnum \isequal{\beamer@kenotom@backround}{ribon}=0
% Default background (We overwrite it temporary inside kenotom frame environments)
\ifnum \isequal{\beamer@kenotom@background}{ribon}=0
\SetBackgroundImage{media/BannerLogoLink.png}{media/Ribon.png}{0.04}{0.15}
\else %None
\SetBackgroundPlain{media/BannerLogoLink.png}
@@ -260,7 +279,7 @@
\setsansfont[Scale=MatchLowercase]{Open Sans}
% General
\ifnum \isequal{\beamer@kenotom@navigation}{disable}=0
\ifdefined \beamer@kenotom@nonavigation
\setbeamertemplate{navigation symbols}{}
\fi
\setbeamertemplate{caption}[numbered]
@@ -304,7 +323,7 @@
\setbeamerfont{institute}{size=\InstituteSize}
\renewcommand{\maketitle}{%
\ifnum \isequal{\beamer@kenotom@fancy}{enable}=0
\ifdefined \beamer@kenotom@fancy
\TitleFrameFancy
\else {% once
\SetBackgroundImage{media/BannerLink.png}{media/Ribon.png}{0.04}{0.4}
@@ -341,7 +360,7 @@
% Section frames
\AtBeginSection[]{%
\ifnum \isequal{\beamer@kenotom@fancy}{enable}=0
\ifdefined \beamer@kenotom@fancy
\SectionFrameFancy
\fi
}
@@ -355,7 +374,7 @@
\newcommand{\InsertFancySection}{%
\FancySectionSize
\textcolor{TitleColorFancy}{
\textcolor{SectionTitleColor}{
\ifnum \thesection<10
\FancySectionFontStyle{0\thesection} \\
\else
@@ -442,7 +461,7 @@
\begin{column}{0.6\textwidth}
\setlength{\TPHorizModule}{\textwidth}
\setlength{\TPVertModule}{\textheight}
\begin{textblock}{1}[0.5,0.5](0.5,0.35)
\begin{textblock}{1}[0.5,0.5](0.55,0.35)
\centering
\huge \textbf {\textcolor{KenotomGrey}{#2} \textcolor{KenotomGreen}{#3}}
\end{textblock}
@@ -461,7 +480,7 @@
}
\newcommand{\OutlineFrame}[3][subsections]{%
\ifnum \isequal{\beamer@kenotom@fancy}{enable}=0
\ifdefined \beamer@kenotom@fancy
\OutlineFrameFancy[#1]{#2}{#3}
\else
\begin{frame}{#2 #3}
@@ -478,6 +497,27 @@
\newcommand{\SectionFrameFancy}{ {% once
\SetBackgroundImage{media/nothing.png}{media/SectionBackground.png}{0}{1.0}
\setbeamercolor{navigation symbols}{fg=NavigationColorFancy, bg=NavigationArrowsColorFancy}
\addtobeamertemplate{background}{}{%
\begin{tikzpicture}[overlay,remember picture]
% Rectangular fill
\fill[SectionFrameOpacityColor, opacity=0.95]
(current page.south east) rectangle (0.3075\paperwidth, \paperheight);
% Circle fill
\fill[GraphicBoxColor, opacity=0.95]
(0.3075\paperwidth, -0.5\paperheight) circle (0.1537\paperwidth);
% Border lines
\draw[color=GraphicLineColor, line width=0.8mm]
(0.3075\paperwidth, -0.5\paperheight) circle (0.17\paperwidth);
\draw[color=GraphicLineColor, line width=0.8mm]
(0.4775\paperwidth, -0.5\paperheight) -- (0.9\paperwidth, -0.5\paperheight);
\fill[GraphicLineColor, opacity=0.95]
(0.9\paperwidth, -0.5\paperheight) circle (1.2mm);
% City
\node[anchor=center] at (0.3075\paperwidth, -0.5\paperheight) {%
\includegraphics[width=0.1945\paperwidth]{media/City.png}
};
\end{tikzpicture}
}
\begin{frame}
\setlength{\TPHorizModule}{\paperwidth}
\setlength{\TPVertModule}{\paperheight}


+ 2
- 2
kenotom_template.tex View File

@@ -5,9 +5,9 @@
% author: Christos Choutouridis <c.choutouridis@kenotom.com>
%
\documentclass[11pt,aspectratio=169,xcolor={table,dvipsnames},t]{beamer}
\documentclass[11pt,aspectratio=43,xcolor={table,dvipsnames},t]{beamer}
\usetheme[backround=ribon,theme=dark,navigation=enable,fancy=enable]{Kenotom}
\usetheme[background=none, theme=dark, fancy]{Kenotom}
\title{Your presentation title}
\subtitle{Your subtitle (if there's one)}


BIN
media/City.png View File

Before After
Width: 778  |  Height: 778  |  Size: 64 KiB

BIN
media/SectionBackground.png View File

Before After
Width: 4000  |  Height: 3000  |  Size: 5.0 MiB Width: 4000  |  Height: 3000  |  Size: 11 MiB

+ 70
- 0
media/svg/City.svg
File diff suppressed because it is too large
View File


+ 4
- 39604
media/svg/SectionBackground.svg
File diff suppressed because it is too large
View File


+ 110
- 0
media/svg/SectionBackground_old.svg
File diff suppressed because it is too large
View File


Loading…
Cancel
Save