Solution-processed photonics for light and heat management