change the bar.rect style