UI: Reduce item padding in the edit mesh context menus

Align items in the edit mesh context menus (reducing padding), for
consistency with other menus.
The root layout of menus doesn't add the padding, for sub-layouts
`align` has to be enabled.

{F8749633}

Reviewed By: Julian Eisel

Differential Revision: https://developer.blender.org/D8480
This commit is contained in:
Yevgeny Makarov 2020-08-06 11:51:54 +02:00 committed by Julian Eisel
parent d71cb229d0
commit b2e0c8f902
Notes: blender-bot 2023-02-13 11:55:02 +01:00
Referenced by commit f948459f12, UI: Reduce item padding in the gpencil edit context menus
5 changed files with 7 additions and 7 deletions

@ -1 +1 @@
Subproject commit 2b3c19f5f61fc72dba56a7edfdc4e55e2327dc1f
Subproject commit a7bbfac76c00edd0fb79a4766b7ac7c5dcbcac51

@ -1 +1 @@
Subproject commit 49c39f59fbc464dd34388990123f271c39eacbf4
Subproject commit 82ed41ec632483fa9260d90dae7afdf3192c509b

@ -1 +1 @@
Subproject commit a52733b58d95ce60ecde95a9eca242e7319c285a
Subproject commit f2f4a8b3bfa36ee49f7bdb3a1acb40ef4b39ee3a

View File

@ -3688,7 +3688,7 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
row = layout.row()
if is_vert_mode:
col = row.column()
col = row.column(align=True)
col.label(text="Vertex Context Menu", icon='VERTEXSEL')
col.separator()
@ -3738,7 +3738,7 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
if is_edge_mode:
render = context.scene.render
col = row.column()
col = row.column(align=True)
col.label(text="Edge Context Menu", icon='EDGESEL')
col.separator()
@ -3806,7 +3806,7 @@ class VIEW3D_MT_edit_mesh_context_menu(Menu):
col.operator("mesh.delete", text="Delete Edges").type = 'EDGE'
if is_face_mode:
col = row.column()
col = row.column(align=True)
col.label(text="Face Context Menu", icon='FACESEL')
col.separator()

@ -1 +1 @@
Subproject commit 896c5f78952adb2d091d28c65086d46992dabdac
Subproject commit 6a252de776d0b9dca3167c30a7621a4f1e9bc911