set bar and gradients