%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
% Modified version of beamerthemeIcy.sty  -- see beameruserguide.pdf for help.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

% Define code to insert left and right logos. WARNING: There's some spacing issues
% where without some extra padding, images spill off the left and right of the page.
\if@beamerposter@portrait
\def\LeftLogo{\includegraphics[height= 0.07\paperheight,keepaspectratio]{LogoLeft}}
\def\RightLogo{\includegraphics[height=0.07\paperheight,keepaspectratio]{LogoRight}}
\else 
\def\LeftLogo{\includegraphics[height= 0.09\paperheight,keepaspectratio]{LogoLeft}}  % \hskip5ex}
\def\RightLogo{\includegraphics[height=0.09\paperheight,keepaspectratio]{LogoRight}} % \phantom{XXXX}}
\fi

% fix the above according to http://tex.stackexchange.com/questions/66435/beamerposter-passing-portrait-options-to-custom-theme
% make it so people don't need to edit this to change logos, dimensions, etc.!


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\selectcolormodel{rgb}
%\mode<presentation>

\setbeamertemplate{navigation symbols}{}  % no navigation on a poster

% OFFICIAL UNR COLORS from http://www.unr.edu/marcom/logos/colors

\definecolor{UNRblue}{RGB}{0,46,98}       % UNR Blue
\definecolor{UNRsilver}{RGB}{128,127,132} % UNR Silver 
\definecolor{UNRgrey}{RGB}{142,146,149}   % UNR Grey   (slightly lighter than UNR Silver)

\definecolor{i6colorschemeL}{HTML}{CFD9FF} % light blue = CFD9FF
\definecolor{i6colorschemeD}{HTML}{5D5D5D} % UNR Silver and Gray too light;   use dark gray  = 5D5D5D
\definecolor{titleBGcolor}{HTML}{EEEEEE}   % Light gray EEEEEE was white = FFFFFF
\definecolor{titleFGcolor}{RGB}{0,46,98}   % UNR BLue    was black = 000000
 
% headline colors and fonts
\setbeamercolor{headline}{fg=black,bg=titleBGcolor}
\setbeamercolor{title in headline}{fg=titleFGcolor}
\setbeamercolor{author in headline}{fg=black}
\setbeamercolor{institute in headline}{fg=i6colorschemeD}
\setbeamercolor{logo in headline}{fg=black,bg=i6colorschemeL}

% lines
\setbeamercolor{separation line}{bg=black}
\setbeamercolor{footline}{fg=black,bg=titleBGcolor}

% poster background, body colors, and fonts
\setbeamercolor*{normal text}{fg=black,bg=white}

% block environment
\setbeamercolor*{block title}{fg=black,bg=i6colorschemeL}
\setbeamercolor*{block body}{bg=white,fg=black}
\setbeamerfont{block title}{size=\normalsize,series=\bf}
\setbeamerfont{block body}{size=\small}

% example environment
\setbeamercolor*{example title}{fg=black,bg=i6colorschemeL}
%\setbeamerfont{example title}{size=\large,series=\bf,bg=white,fg=black}

%\setbeamercolor*{example body}{fg=white,bg=i6colorscheme4}
%\setbeamercolor*{example title}{fg=white,bg=i6colorscheme1}

%  \setbeamercolor{framesubtitle}{fg=ta3orange, bg=ta2gray}
%  \setbeamercolor{author in head/foot}{fg=tabutter, bg=black}
%  \setbeamercolor{title in head/foot}{bg=tabutter, fg=black}

%\setbeamercolor{alerted text}{fg=red}

%\setbeamercolor{example text}{fg=taorange}
%\setbeamercolor{structure}{fg=ta3skyblue}

% Set itemize indention and symbol
\usepackage{paralist} % Change first-level indent to 5em instead of 2.5em. See doc.
\setdefaultleftmargin{5em}{2.2em}{1.87em}{1.7em}{1em}{1em}
\setbeamertemplate{itemize items}[triangle]
\setbeamertemplate{itemize item}{\raisebox{0.1ex}{$\blacktriangleright$}\hskip0.1em}
%\setbeamertemplate{itemizesubitem}{\raisebox{0.1ex}{$\triangleright$}\hskip0.1em} 


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{block begin}{
  \vskip0.5ex % space between this block and the block above it.
  \begin{beamercolorbox}[dp=0ex,rounded=true,shadow=false,leftskip=0cm,colsep*=.75ex]{block title}%
    \usebeamerfont*{block title}\insertblocktitle
  \end{beamercolorbox}%
  {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
  \usebeamerfont{block body}%
  \begin{beamercolorbox}[leftskip=1cm,colsep*=.75ex,sep=2ex,vmode]{block body}%
    \ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
  }
  \setbeamertemplate{block end}{
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setbeamertemplate{headline}{  
  \leavevmode

  \begin{beamercolorbox}[wd=\paperwidth]{upper separation line head}
    \rule{0pt}{2pt}
  \end{beamercolorbox}

  \begin{beamercolorbox}[wd=\paperwidth]{headline}
  %\vskip2ex
  \begin{center}
    \begin{columns}[onlytextwidth,c]
      \begin{column}{.1\textwidth} 
        \hspace*{0.015\paperwidth}\LeftLogo
      \end{column}
      \begin{column}{.8\textwidth}
         \vskip2ex\centering
         \if@beamerposter@portrait
        \usebeamercolor{title in headline}{\color{fg}\textbf{\Large{\inserttitle}}\\[2.5ex]}
        \usebeamercolor{author in headline}{\color{fg}\large{\insertauthor}\\[0.5ex]}
        \usebeamercolor{institute in headline}{\color{fg}\footnotesize{\insertinstitute}}
    \else
        \usebeamercolor{title in headline}{\color{fg}\textbf{\LARGE{\inserttitle}}\\[2.5ex]}
        \usebeamercolor{author in headline}{\color{fg}\Large{\insertauthor}\\[0.5ex]}
        \usebeamercolor{institute in headline}{\color{fg}\large{\insertinstitute}}
    \fi     
      \end{column}
      \begin{column}{.1\textwidth} 
         \hfill\RightLogo\hspace*{0.015\paperwidth}
      \end{column}
    \end{columns}
    %\vskip1ex
    \end{center}
  \end{beamercolorbox}

  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line head}
    \rule{0pt}{2pt}
  \end{beamercolorbox}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\setbeamertemplate{footline}{
%  \normalsize
%  \begin{beamercolorbox}[wd=\paperwidth]{upper separation line foot}
%    \rule{0pt}{2pt}
%  \end{beamercolorbox}
%  
%  \begin{beamercolorbox}[ht=4ex,leftskip=1cm,rightskip=1cm]{footline}%
%    Foot Left
%    \hfill Foot Center
%    \hfill Foot Right
%    \vskip1ex
%  \end{beamercolorbox}
%  \vskip0pt%
%  \begin{beamercolorbox}[wd=\paperwidth]{lower separation line foot}
%    \rule{0pt}{2pt}
%  \end{beamercolorbox}
%}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mode<all>


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Local Variables: 
%%% mode: latex
%%% TeX-PDF-mode: t
%%% TeX-master: "poster"
%%% End: 