I am writing a thesis and have the first two pages of each chapter colored gray with white text, before starting with the sections on white pages. I now want a partial TOC in each chapter, on these gray pages, and thus in white text. Although the section titles are now colored white, the page numbers are still black. How do I get the page numbers to be white as well in the partial TOC (while remaining black in the main TOC)?
Edit:
The main TOC contains some lines of text to divide the contents into parts (this is just in the contents for clarity, the parts are not coded or numbered in any way). This seems not compatible with the solution provided.
MWE:
\documentclass{book}
\usepackage{titletoc,xcolor}
\usepackage[pagecolor=none]{pagecolor}
\begin{document}
\tableofcontents
\addtocontents{toc}{\setcounter{tocdepth}{0}}
\color{white}
\chapter{This is Chapter 1}
\thispagestyle{empty}\newpagecolor{gray}
\newpage\thispagestyle{empty}
\startcontents[section]
\printcontents[section]{}{1}{\addtocontents{ptc}{\setcounter{tocdepth}{2}}}
\newpage\newpagecolor{white}
\color{black}
\section{bla}\section{bla}
\addtocontents{toc}{\smallskip \textit{Modeling} \medskip \par}
\chapter{This is Chapter 2}%would be made up like Chapter1; omitted here for clarity
\chapter{This is Chapter 3}
\addtocontents{toc}{\smallskip \textit{Experiments} \medskip \par}
\chapter{This is Chapter 4}
\chapter{This is Chapter 5}
\end{document}
