frame-set-background-mode

frame-set-background-mode is a compiled Lisp function in `frame.el'.

(frame-set-background-mode FRAME &optional KEEP-FACE-SPECS)

Set up display-dependent faces on FRAME.
Display-dependent faces are those which have different definitions
according to the `background-mode' and `display-type' frame parameters.

If optional arg KEEP-FACE-SPECS is non-nil, don't recalculate
face specs for the new background mode.