\mode<presentation>




% Frame title
\defbeamertemplate*{frametitle}{-est}[1][]
{
  \ifx\insertframesubtitle\@empty%
  \begin{beamercolorbox}[wd=\paperwidth,ht=13mm]{frametitle} 
    \begin{tikzpicture}
        \path[left color=bluish, right color=greenish,shading angle=90] (-2mm,2mm) rectangle (\the\paperwidth,15mm);
        \path[top color=black, bottom color=white,shading angle=0] (-2mm,0mm) rectangle (\the\paperwidth,2mm);
        \node[anchor= west, color=white] at (.2,0.8){\LARGE\textbf{\insertframetitle}};
    \end{tikzpicture}
  \end{beamercolorbox}
  \else%
  \begin{beamercolorbox}[wd=\paperwidth,ht=16mm]{frametitle} 
    \begin{tikzpicture}
        \path[left color=bluish, right color=greenish,shading angle=90] (-2mm,2mm) rectangle (\the\paperwidth,18mm);
        \path[top color=black, bottom color=white,shading angle=0] (-2mm,0mm) rectangle (\the\paperwidth,2mm);          
        \node[anchor= west, color=white] at (.2,1.1){\LARGE\textbf{\insertframetitle}};%
        \node[anchor= west, text=xlightgray,font=\small] at (.2,0.5){\insertframesubtitle};
    \end{tikzpicture}
  \end{beamercolorbox}
  \fi
}

\mode<all>