Fix some palette bugs, especially around the light theme.