nicer alignment for preset UI

This commit is contained in:
2010-06-27 21:35:31 +00:00
parent d9bcd249cf
commit 5cc2e136ec
3 changed files with 7 additions and 8 deletions

View File

@@ -155,9 +155,9 @@ class OBJECT_PT_groups(ObjectButtonsPanel):
ob = context.object
wide_ui = context.region.width > narrowui
split = layout.split(percentage=0.8, align=True)
split.operator("object.group_link", text="Add to Group")
split.operator("object.group_add", text="", icon='ZOOMIN')
row = layout.row(align=True)
row.operator("object.group_link", text="Add to Group")
row.operator("object.group_add", text="", icon='ZOOMIN')
# XXX, this is bad practice, yes, I wrote it :( - campbell
index = 0

View File

@@ -87,7 +87,7 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel):
col = split.column()
col.label(text="Presets:")
sub = col.row(align=True).split(percentage=0.75)
sub = col.row(align=True)
sub.menu("CLOTH_MT_presets", text=bpy.types.CLOTH_MT_presets.bl_label)
sub.operator("cloth.preset_add", text="", icon="ZOOMIN")

View File

@@ -536,10 +536,9 @@ class RENDER_PT_dimensions(RenderButtonsPanel):
rd = scene.render
wide_ui = context.region.width > narrowui
row = layout.row().split()
sub = row.row(align=True).split(percentage=0.75)
sub.menu("RENDER_MT_presets", text=bpy.types.RENDER_MT_presets.bl_label)
sub.operator("render.preset_add", text="", icon="ZOOMIN")
row = layout.row(align=True)
row.menu("RENDER_MT_presets", text=bpy.types.RENDER_MT_presets.bl_label)
row.operator("render.preset_add", text="", icon="ZOOMIN")
split = layout.split()