Added automatically shading the border for progress bars.