For those who want to achieve page numbers right after titles using tocloft
because this package is already used in their class, this works:
%MWE ONLY
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[lf]{MinionPro} % In this case we have to load the font package!!!
\usepackage{xcolor}
\usepackage{tocloft}
\cftpagenumbersoff{chapter}
\cftsetindents{figure}{0em}{3em}
\cftsetindents{table}{0em}{3em}
\renewcommand{\cftsecleader}{\hspace{.5em}}
\renewcommand{\cftsecafterpnum}{\cftparfillskip}
\renewcommand{\cftsubsecleader}{\hspace{.5em}}
\renewcommand{\cftsubsecafterpnum}{\cftparfillskip}
%\renewcommand{\cftchapafterpnum}{\vspace{5pt}}
\newcommand{\secfont}{\fontfamily{MinionPro-OsF}\selectfont}
\renewcommand{\cftsecpagefont}{\secfont\color{blue}}
\renewcommand{\cftsubsecpagefont}{\secfont\color{blue}}
\begin{document}
\tableofcontents
\section{bla}
\subsection{blubb}
\section{foo}
\subsection{bar}
\end{document}
If you now include this piece of code in your thesis and use a better color you will get a result like the following:
