Different favicon for dashboard pages

I found it handy to make tree tabs look different from notebooks by inverting the color of the icon for them.  Very simple change.

I imagine that it would be best made as an option rather than hard-coded.  What would be the preferred way to go about that?