The Color of Battery Widget

I have a question regarding the battery widget. What are the logic behind the order of color shown in the battery widget?