add background color and opacity to text metadata