apply dim value to the whole screen