While the layer styles dialog is open, you're in a modal state. In a modal state, there are a limited number of things you can do, and changing the foreground/background colors is not one of those things. The styles are not affected by the foreground/background colors - so there is no need to change them while the dialog is open.