Abstract solution I came across a couple of months ago:
Parent Container in percent mode
Child Container One displays desired color and fills the parent 100% at all times.
Child Container Two displays background color at a fill rate of 1.0-(value_as_percent/100)
AbstractLevelIndicator.json (3.2 KB)