Tidied navbar colour generation