add foreground color to preference