diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-10 17:29:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-10 17:29:55 +0300 |
commit | a978654977603839a8e6dcd290bf69a39ed946aa (patch) | |
tree | 2d0766994af0e90158cf4cf4808dfaa5c31666ad /release | |
parent | 4d1193feb3206516e3142b68bf0d827e256e10d9 (diff) |
UI: use property split for UV mask panel
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 1550b661971..1cacba82b3e 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -610,6 +610,7 @@ class VIEW3D_PT_stencil_projectpaint(View3DPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True toolsettings = context.tool_settings ipaint = toolsettings.image_paint @@ -620,17 +621,23 @@ class VIEW3D_PT_stencil_projectpaint(View3DPanel, Panel): col.active = ipaint.use_stencil_layer stencil_text = mesh.uv_layer_stencil.name if mesh.uv_layer_stencil else "" - col.label("UV Map") - col.menu("VIEW3D_MT_tools_projectpaint_stencil", text=stencil_text, translate=False) + split = col.split(0.5) + colsub = split.column() + colsub.alignment = 'RIGHT' + colsub.label("UV Layer") + split.column().menu("VIEW3D_MT_tools_projectpaint_stencil", text=stencil_text, translate=False) - col.label("Stencil Image:") # todo this should be combinded into a single row - col.template_ID(ipaint, "stencil_image", open="image.open") - col.operator("image.new", text="New").gen_context = 'PAINT_STENCIL' + split = col.split(0.5) + colsub = split.column() + colsub.alignment = 'RIGHT' + colsub.label("Stencil Image") + colsub = split.column() + colsub.template_ID(ipaint, "stencil_image", open="image.open") + colsub.operator("image.new", text="New").gen_context = 'PAINT_STENCIL' - col.label("Visualization:") row = col.row(align=True) - row.prop(ipaint, "stencil_color", text="") + row.prop(ipaint, "stencil_color", text="Display Color") row.prop(ipaint, "invert_stencil", text="", icon='IMAGE_ALPHA') |