How to programmatically change all default colors?

This code in applicationDidFinishLaunchingWithOptions

     window?.tintColor = .red
     window?.backgroundColor = .green

change the default views tint color, not the background color, of my whole application, which is a double view with table view.

The default text color is a black "Color Dark Text" in label texts, and a black "Color default" in text fields.

Is there a way to programmatically change all the defaults color, foreground and background?