UI: move gizmo popover next to the overlay buttons

In paint modes this was the only button in the middle.
This commit is contained in:
Campbell Barton 2019-04-15 15:54:25 +02:00
parent bcefceb200
commit 25efa970d6
1 changed files with 12 additions and 11 deletions

View File

@ -132,17 +132,6 @@ class VIEW3D_HT_header(Header):
# Mode & Transform Settings
scene = context.scene
# Gizmo popover.
row = layout.row(align=True)
# FIXME: place-holder icon.
row.prop(view, "show_gizmo", text="", toggle=True, icon='EMPTY_DATA')
sub = row.row(align=True)
sub.active = view.show_gizmo
sub.popover(
panel="VIEW3D_PT_gizmo_display",
text="",
)
# Orientation
if object_mode in {'OBJECT', 'EDIT', 'EDIT_GPENCIL'} or has_pose_mode:
orient_slot = scene.transform_orientation_slots[0]
@ -282,6 +271,18 @@ class VIEW3D_HT_header(Header):
text="",
)
# Gizmo toggle & popover.
row = layout.row(align=True)
# FIXME: place-holder icon.
row.prop(view, "show_gizmo", text="", toggle=True, icon='EMPTY_DATA')
sub = row.row(align=True)
sub.active = view.show_gizmo
sub.popover(
panel="VIEW3D_PT_gizmo_display",
text="",
)
# Overlay toggle & popover.
row = layout.row(align=True)
row.prop(overlay, "show_overlays", icon='OVERLAY', text="")
sub = row.row(align=True)