Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 4,611 Lines • ▼ Show 20 Lines | class VIEW3D_PT_shading_color(Panel): | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| shading = VIEW3D_PT_shading.get_shading(context) | shading = VIEW3D_PT_shading.get_shading(context) | ||||
| return shading.type in {'WIREFRAME', 'SOLID'} | return shading.type in {'WIREFRAME', 'SOLID'} | ||||
| def _draw_color_type(self, context): | def _draw_color_type(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| shading = VIEW3D_PT_shading.get_shading(context) | shading = VIEW3D_PT_shading.get_shading(context) | ||||
| layout.row().prop(shading, "color_type", expand=True) | layout.grid_flow(columns=3, align=True).prop(shading, "color_type", expand=True) | ||||
| if shading.color_type == 'SINGLE': | if shading.color_type == 'SINGLE': | ||||
| layout.row().prop(shading, "single_color", text="") | layout.row().prop(shading, "single_color", text="") | ||||
| def _draw_background_color(self, context): | def _draw_background_color(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| shading = VIEW3D_PT_shading.get_shading(context) | shading = VIEW3D_PT_shading.get_shading(context) | ||||
| layout.row().label(text="Background") | layout.row().label(text="Background") | ||||
| ▲ Show 20 Lines • Show All 1,485 Lines • Show Last 20 Lines | |||||