factored out some color picking, and fixed ZDS tooltip bug