UI: shorten labels to avoid clipping

This commit is contained in:
William Reynish 2018-06-27 22:11:29 +02:00 committed by Campbell Barton
parent cf7ff47e3e
commit 609805eed3
2 changed files with 32 additions and 9 deletions

View File

@ -205,8 +205,8 @@ class RENDER_PT_stamp(RenderButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
layout.use_property_split = True
layout.use_property_decorate = False # No animation.
layout.use_property_split = True
layout.use_property_decorate = False # No animation.
rd = context.scene.render
@ -672,8 +672,8 @@ class RENDER_PT_eevee_shadows(RenderButtonsPanel, Panel):
col = layout.column()
col.prop(props, "shadow_method")
col.prop(props, "shadow_cube_size")
col.prop(props, "shadow_cascade_size")
col.prop(props, "shadow_cube_size", text="Cube Size")
col.prop(props, "shadow_cascade_size", text="Cascade Size")
col.prop(props, "use_shadow_high_bitdepth")
@ -719,7 +719,7 @@ class RENDER_PT_eevee_indirect_lighting(RenderButtonsPanel, Panel):
col = layout.column()
col.prop(props, "gi_diffuse_bounces")
col.prop(props, "gi_cubemap_resolution")
col.prop(props, "gi_visibility_resolution")
col.prop(props, "gi_visibility_resolution", text="Diffuse Occlusion")
class RENDER_PT_eevee_film(RenderButtonsPanel, Panel):

View File

@ -273,7 +273,7 @@ class SCENE_PT_color_management(SceneButtonsPanel, Panel):
col.separator()
col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer Color Space")
col.prop(scene.sequencer_colorspace_settings, "name", text="Sequencer")
class SCENE_PT_color_management_curves(SceneButtonsPanel, Panel):
@ -441,6 +441,15 @@ class SCENE_PT_simplify(SceneButtonsPanel, Panel):
rd = context.scene.render
self.layout.prop(rd, "use_simplify", text="")
def draw(self, context):
layout = self.layout
class SCENE_PT_simplify_viewport(SceneButtonsPanel, Panel):
bl_label = "Viewport"
bl_parent_id = "SCENE_PT_simplify"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
def draw(self, context):
layout = self.layout
layout.use_property_split = True
@ -450,13 +459,25 @@ class SCENE_PT_simplify(SceneButtonsPanel, Panel):
layout.active = rd.use_simplify
col = layout.column()
col.prop(rd, "simplify_subdivision", text="Max Viewport Subdivision")
col.prop(rd, "simplify_subdivision", text="Max Subdivision")
col.prop(rd, "simplify_child_particles", text="Max Child Particles")
col.separator()
class SCENE_PT_simplify_render(SceneButtonsPanel, Panel):
bl_label = "Render"
bl_parent_id = "SCENE_PT_simplify"
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
def draw(self, context):
layout = self.layout
layout.use_property_split = True
rd = context.scene.render
layout.active = rd.use_simplify
col = layout.column()
col.prop(rd, "simplify_subdivision_render", text="Max Render Subdivision")
col.prop(rd, "simplify_subdivision_render", text="Max Subdivision")
col.prop(rd, "simplify_child_particles_render", text="Max Child Particles")
@ -518,6 +539,8 @@ classes = (
SCENE_PT_rigid_body_cache,
SCENE_PT_rigid_body_field_weights,
SCENE_PT_simplify,
SCENE_PT_simplify_viewport,
SCENE_PT_simplify_render,
SCENE_PT_custom_props,
)