Update background and foreground colors.