Added code to the bar widget to handle "drained" segments.
Added some animation to the bar widget when the drained attribute is dynamically changed.