Set header and footer to rgba value from opacity