I want to have colored part and chapter names in my shorttoc and my toc. So I worked out how to get the shorttoc colored, but I do not know how to get the toc also colored the same way? If I add the commands twice (between \makelatter and \makeatother) it does not work. So how can I get both colored the same way?
Here's my code:
\documentclass{book}
\usepackage[pagestyles]{titlesec}
\titlespacing*{\chapter}{0pt}{-30pt}{20pt}
\titleformat{\chapter}[display]{\color{headercolor}\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
\titleformat{\section}
{\color{headercolor}\normalfont\Large\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}
{\color{headercolor}\normalfont\Large\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}
{\color{headercolor}\normalfont\large\bfseries}{\thesubsubsection}{1em}{}
\titleformat{\paragraph}
{\color{headercolor}\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\usepackage[ngerman]{babel}
\usepackage[hidelinks]{hyperref}
\usepackage{xcolor,bookmark}
\usepackage{shorttoc}
\usepackage{tocstyle}
\usetocstyle{allwithdot}
\definecolor{headercolor}{rgb}{0.6941,0.6745,0.4863}
\begin{document}
\frontmatter
\makeatletter
\let\stdl@part\l@part
\renewcommand*{\l@part}[2]{%
\stdl@part{\textcolor{headercolor}{#1}}{\textcolor{headercolor}{#2}}}
\let\stdl@chapter\l@chapter
\renewcommand*{\l@chapter}[2]{%
\stdl@chapter{\textcolor{headercolor}{#1}}{\textcolor{headercolor}{#2}}}
\makeatother
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\shorttableofcontents{Inhalts\"ubersicht}{1}
\bookmark[page=15,rellevel=1,keeplevel,view={XYZ},color=red]{Inhalts\"ubersicht}
\bookmark[page=17,rellevel=1,keeplevel,view={XYZ},color=red]{Inhaltsverzeichnis}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\mainmatter
\part{test}
\chapter{test}
\section{test1}
\section{test2}
and so on....
and so on.....
\end{document}
Now the shorttoc is colored bot not the toc, but I want both colored.

