Details
Details
- Reviewers
Julian Eisel (Severin) - Maniphest Tasks
- T61558: Label alignment in top bar
- Commits
- rB301fac5ded7d: UI: Fix Label alignment in top bar
Diff Detail
Diff Detail
- Repository
- rB Blender
Event Timeline
Comment Actions
import bpy class OBJECT_PT_hello(bpy.types.Panel): bl_label = "Hello World Panel" bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = "object" def draw(self, context): layout = self.layout row = layout.row() row.alignment = 'RIGHT' row.prop(context.object, "display_type", icon='BLENDER') row.prop(context.object.lineart, "usage") row.prop(context.space_data, "search_filter", icon='VIEWZOOM', text="Test") layout.separator() row = layout.row() row.alignment = 'LEFT' row.prop(context.object.lineart, "usage") row.prop(context.space_data, "search_filter", icon='VIEWZOOM', text="Test") row.label(text="Custom:") row.operator("mesh.primitive_cube_add") row.prop(context.scene, "use_gravity") layout.separator() row = layout.column() row.use_property_split = True row.prop(context.object, "display_type", icon='BLENDER') row.prop(context.object.lineart, "usage") row.prop(context.space_data, "search_filter", icon='VIEWZOOM', text="Test") layout.separator() row = layout.row() row.prop(context.object, "display_type", icon='BLENDER') row.prop(context.object.lineart, "usage") row.prop(context.space_data, "search_filter", icon='VIEWZOOM', text="Test") layout.separator() col = layout.column() col.prop(context.object, "display_type") col.prop(context.object.lineart, "usage") col.prop(context.space_data, "search_filter", icon='VIEWZOOM', text="Test") col.label(text="Custom:") col.operator("mesh.primitive_cube_add") col.prop(context.scene, "use_gravity") def register(): bpy.utils.register_class(OBJECT_PT_hello) def unregister(): bpy.utils.unregister_class(OBJECT_PT_hello) if __name__ == "__main__": register()
Comment Actions
Couldn't find a case that breaks with this, it should only affect few cases. It's a nice fix if it works out, so let's try it.

