\documentclass[xcolor=dvipsnames,t]{beamer}
\usepackage{amsmath,amssymb,url}
\usepackage{graphicx}
\usepackage{color}

% styl
\setbeamertemplate{navigation symbols}{} 
\usetheme{Boadilla} 
\usecolortheme[named=Brown]{structure} 

\usepackage[polish]{babel} % polski latex
\usepackage[T1]{fontenc} % pozwala wypisywać "ę" 
\usepackage[utf8]{inputenc} % format wejściowy - utf8
\usepackage{lmodern} % dobrze wyglądająca czcionka na monitorach


% kolorowanie składni
\usepackage{listings}
\lstset{ language=Bash }
\definecolor{editorLightGray}{cmyk}{0.25, 0.25, 0.25, 0.1}
\definecolor{editorGray}{cmyk}{0.6, 0.55, 0.55, 0.2}
\definecolor{editorPurple}{cmyk}{0.5, 1, 0, 0}
\definecolor{editorWhite}{cmyk}{0, 0, 0, 0}
\definecolor{editorBlack}{cmyk}{1, 1, 1, 1}
\definecolor{editorOrange}{cmyk}{0, 0.8, 1, 0}
\definecolor{editorBlue}{cmyk}{1, 0.6, 0, 0}
\definecolor{editorPink}{cmyk}{1, 0, 1, 0}
\lstset{literate={ą}{{\k{a}}}1 {ł}{{\l{}}}1 {ć}{{\'c}}1 {ń}{{\'n}}1 {ę}{{\k{e}}}1 {ś}{{\'s}}1 {ż}{{\.z}}1 {ó}{{\'o}}1 {ź}{{\'z}}1 {Ą}{{\k{A}}}1 {Ł}{{\L{}}}1 {Ń}{{\'N}}1 {Ć}{{\'C}}1 {Ę}{{\k{E}}}1 {Ś}{{\'S}}1 {Ż}{{\.Z}}1 {Ó}{{\'O}}1 {Ź}{{\'Z}}1 }

\lstdefinelanguage{HTML5}{
  language=html,
  alsoletter={!/},
  markfirstintag=true,
  morecomment=[s]{<!--}{-->},
  keywords={},
}

\lstset{
  language=HTML5,
  tagstyle=\color{editorBlue},
  basicstyle={\small\ttfamily},
  identifierstyle=\color{black},
  keywordstyle=\color{editorPink},
  commentstyle=\color{editorGray},
  stringstyle=\color{editorPurple},
}

\makeatletter
\gdef\lst@BeginTag{%
    \lst@DelimOpen
        \lst@ifextags\else
        {\let\lst@ifkeywords\iftrue
         \lst@ifmarkfirstintag\lst@firstintagtrue\fi\color{editorLightGray}}}
\gdef\lst@EndTag{\lst@DelimClose\lst@ifextags\else\color{editorBlue}}

% Makra robiące slajdy
\newcommand{\alertFrame}[1]{
\begin{frame}[plain]
\begin{center}
\Huge{#1}
\end{center}
\end{frame}
}
 
\newenvironment{changemargin}[2]{%
\begin{list}{}{%
\setlength{\topsep}{-3pt}%
\setlength{\leftmargin}{#1}%
\setlength{\rightmargin}{#2}%
\setlength{\listparindent}{\parindent}%
\setlength{\itemindent}{\parindent}%
\setlength{\parsep}{\parskip}%
}%
\item[]}{\end{list}}
 
\newcommand{\maxFrameImageWhite}[1]{
\begin{frame}[plain]
\begin{changemargin}{-1cm}{-1cm}
\begin{center}
\includegraphics[width=0.99\paperwidth,height=0.9\paperheight,keepaspectratio]
{#1}
\end{center}
\end{changemargin}
\end{frame}
\beamertemplatesolidbackgroundcolor{white}
}
 
\newcommand{\maxFrameImage}[1]{
\beamertemplatesolidbackgroundcolor{black}
\maxFrameImageWhite{#1}
}

\newcommand{\myTitle}{
{
\usebackgroundtemplate
{
    \includegraphics[width=\paperwidth,height=\paperheight]{pics/background.jpg}%
}
\begin{frame}[plain]
\maketitle
\end{frame}
}
}