UI: Make "Lock Interface" a icon only button and pack into the Display row, we don...
authorThomas Dinges <blender@dingto.org>
Wed, 29 Jan 2014 12:27:33 +0000 (13:27 +0100)
committerThomas Dinges <blender@dingto.org>
Wed, 29 Jan 2014 12:29:23 +0000 (13:29 +0100)
release/scripts/startup/bl_ui/properties_render.py

index f12615344653326265e15004aab7b00087313500..ebcb8ea3de7ae9a766898c0f9d2cb627e9c767a9 100644 (file)
@@ -69,9 +69,16 @@ class RENDER_PT_render(RenderButtonsPanel, Panel):
         row.operator("render.render", text="Animation", icon='RENDER_ANIMATION').animation = True
         row.operator("sound.mixdown", text="Audio", icon='PLAY_AUDIO')
 
-        layout.prop(rd, "display_mode", text="Display")
+        split = layout.split(percentage=0.33)
 
-        layout.prop(rd, "use_lock_interface")
+        split.label(text="Display:")
+        row = split.row(align=True)
+        row.prop(rd, "display_mode", text="")
+
+        if rd.use_lock_interface:
+            row.prop(rd, "use_lock_interface", text="", icon='LOCKED')
+        else:
+            row.prop(rd, "use_lock_interface", text="", icon='UNLOCKED')
 
 
 class RENDER_PT_dimensions(RenderButtonsPanel, Panel):