From version C6 for 1.12, Optifine has feature called "Custom GUIs". Now you can edit GUI texture considering biome, height, beacon levels, etc.
So, to try this feature, I created resourcepack that changes color of inventory in red shulker box. But my photoshop skills are not very good, so I leave resource pack for others. Maybe someone wants to finish it.
(I have not decided whether to paint all inventory, or just a top part) Link