I intend to use small colored boxes in front of sections in order to identify at which heading level the text is located, and I'd want my reader to quickly reference the heading level by color. My idea was to implement a small line holding the order of the heading colors into each odd head rule. Is it possible to add the code below in such a way that I might get the result shown in the picture:
\makeheadrule{standard}{\textwidth}{\normalrulethickness}
I just picked random colors here, but if possible, I would decide on colors that would be distinguishable by the colorblind.