Update the opacity of the background