# 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

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