Battery colour depending on the charge percentage


I don't find this function and I know if that exist, but a good idea is to change the color of batteries icon (or background) in the Touch Bar in function of the charge %.

For example, to have the possibilities to colorize the background in red if the batteries is less or equal of 20%, orange less or equal 40% and green between 100 and 40%