Transforming the bar background to a gradient