Touch Bar Battery Widget - Change text colour when battery gets to certain %

Would it be possible to program the battery widget on the touch bar to change colour when the battery gets to a cetain percentage? E.g. When battery gets to 10%, the widget turns red.

Thanks