progressbar: use the foreground color to draw the progressbar

This removes the hard-coding blue color for progress bar and let the
user could set the color for itself.

[commit amented by Grissiom: format the code and update the demo]
Merge remote-tracking branch 'origin/master' into temp-merge

Github-hook: fix #50