add gradient to loading bar