[Tex/LaTex] changing text color in subsection in tableofcontents in beamer

beamercolortable of contents

I don't have a MWE, but what I am trying to do is to change the text color of the subsection in the tableofcontents in beamer. What I have is this:

\section{Live Querying Approach}
         \subsection{Traversal-based approach}
         \subsection{\textcolor{blue}{Index-based approach}}
         \subsection{{\color{blue} Hybrid approach}}

%
\begin{frame}
    \frametitle{Outline}
\tableofcontents[currentsection]
\end{frame}

Without the \textcolor in the \subsection, this, of course, works well, but when I use the \textcolor it throws an error. How do I do this?

I am aware of this Changing the section and subsection font color in contents page in beamer, but that changes the color in all of the \subsections in the document — all I want to do is to change in one case.

Is there a way to accomplish what I am trying to do?

Best Answer

Actually your question is rather tricky to answer, but maybe the following workaround is good enough:

\documentclass{beamer}
\newcommand{\mypause}[1][+]{\onslide<#1>}

\title{TITLE}
\author{AUTHOR}

\begin{document}

\section{Live Querying Approach}
\subsection{Traversal-based approach}
\subsection{Index-based approach}
\subsection{Hybrid approach}

\begin{frame}<2>
    \setbeamercovered{%
       still covered={\opaqueness<1->{100}},
       again covered={\opaqueness<1->{15}}
    }
    \setbeamercolor{subsection in toc}{fg=blue}
    \let\pause\mypause
    \tableofcontents[pausesubsections]
\end{frame}

\end{document}

enter image description here