TouchBar Battery Widget: Turn BKG red when under 20%

Is there a way to make this happen?

or possibly rewrite the widget with this capability?
I found a CPU temperature widget and that turns red when above 70°c, so could I make this happen with the battery widget?