ColorBarHelper: fixes and improvements

Change-Id: I49b92b9dbb3a0d9db7b32f72cebe0a24cad1f764