# Change Background Color of the 3D Viewport

When I work in edit mode and wireframe I have difficulty to visualize the loops of the object. How can I change the background color of the viewport or the color of the wires? Thanks, Dov

• You can change all the colors in the user preferences. Go to the file menu, then user preferences. In the "themes" tab, you'll find several presets and a way to customize each part of the UI – lemon Feb 25 '17 at 15:45

## 2 Answers

You can change the background color by going to: User Preferences > Theme > 3D View > Theme Background Color > Gradient High/Off

Note: CTRL + ALT + U opens user preferences immediately.

You can also change the color of the wire by using Wire and Wire Edit in the same menu.

To change the background color in script you can do something like that:

bpy.context.user_preferences.themes[0].view_3d.space.gradients.high_gradient = new_color

• for 2.8 it would be.. bpy.context.preferences.themes[0].view_3d.space.gradients.high_gradient = new_color – sreenivas Mar 24 at 17:14