Change Background Colour Depending On TimeFrame

 
I'm struggling to figure this problem out that i have. 

I'm trying to make it so that the TF's M1 to M15 are locked at a set colour. But then when you switch to H1, H4 and Daily it changes to a different background colour. Weekly and Monthly would also be locked to a set colour. 
 
Could you create a rectangle object, set it to background, set it equal to the screen size and set its color?
 
clemmo:
Could you create a rectangle object, set it to background, set it equal to the screen size and set its color?
Yeah that is one way of doing it and it's the way I'm currently doing it. Just looking for a way for a indicator to do the work. 
 
Liam Green:
I'm struggling to figure this problem out that i have. 

I'm trying to make it so that the TF's M1 to M15 are locked at a set colour. But then when you switch to H1, H4 and Daily it changes to a different background colour. Weekly and Monthly would also be locked to a set colour. 
Files:
Reason: