Set objective colour based on type (fixes #222)