Implement class-specific bar color customizing

Add the lua logic to use class-specific bar colors